azure-docs-sdk-java/docs-ref-autogen/com.microsoft.azure.functio...

40 строки
2.9 KiB
YAML

### YamlMime:JavaType
uid: "com.microsoft.azure.functions.annotation.EventGridTrigger"
fullName: "com.microsoft.azure.functions.annotation.EventGridTrigger"
name: "EventGridTrigger"
nameWithType: "EventGridTrigger"
summary: "Place this on a parameter whose value would come from EventGrid, and causing the method to run when an event is arrived."
syntax: "public interface **EventGridTrigger**</br> implements <xref href=\"java.lang.annotation.Annotation?alt=java.lang.annotation.Annotation&text=Annotation\" data-throw-if-not-resolved=\"False\" />"
methods:
- uid: "com.microsoft.azure.functions.annotation.EventGridTrigger.dataType()"
fullName: "com.microsoft.azure.functions.annotation.EventGridTrigger.dataType()"
name: "dataType()"
nameWithType: "EventGridTrigger.dataType()"
summary: "Defines how Functions runtime should treat the parameter value."
modifiers:
- "abstract"
syntax: "public abstract String dataType()"
desc: "Defines how Functions runtime should treat the parameter value. Possible values are:\n\n * \"\": get the value as a string, and try to deserialize to actual parameter type like POJO\n * string: always get the value as a string\n * binary: get the value as a binary data, and try to deserialize to actual parameter type byte\\[\\]"
returns:
description: "The dataType which will be used by the Functions runtime."
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.functions.annotation.EventGridTrigger.name()"
fullName: "com.microsoft.azure.functions.annotation.EventGridTrigger.name()"
name: "name()"
nameWithType: "EventGridTrigger.name()"
summary: "The variable name used in function.<wbr>json."
modifiers:
- "abstract"
syntax: "public abstract String name()"
desc: "The variable name used in function.json."
returns:
description: "The variable name used in function.json."
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
type: "interface"
desc: "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:\n\n * Any native Java types such as int, String, byte\\[\\]\n * Nullable values using Optional<T>\n * Any POJO type\n\nThe following example shows a Java function that prints out an event:\n\n```java\n@FunctionName(\"eventGridMonitor\")\n public void logEvent(\n @EventGridTrigger(name = \"event\") String content,\n final ExecutionContext context\n ) {\n context.getLogger().info(content);\n }\n```"
implements:
- "<xref href=\"java.lang.annotation.Annotation?alt=java.lang.annotation.Annotation&text=Annotation\" data-throw-if-not-resolved=\"False\" />"
metadata: {}
package: "com.microsoft.azure.functions.annotation"
artifact: com.microsoft.azure.functions:azure-functions-java-library:1.3.1