@Retention(value=RUNTIME) @Target(value=PARAMETER) public @interface EventGridTrigger
Place this on a parameter whose value would come from EventGrid, and causing the method to run when an event is arrived. The parameter type can be one of the following:
The following example shows a Java function that prints out an event:
@FunctionName("eventGridMonitor")
public void logEvent(
@EventGridTrigger(name = "event") String content,
final ExecutionContext context
) {
context.getLogger().info(content);
}public abstract String name
public abstract String dataType
Defines how Functions runtime should treat the parameter value. Possible values are:
Copyright © 2022. All rights reserved.