diff --git a/src/main/java/com/microsoft/azure/functions/annotation/EventGridTrigger.java b/src/main/java/com/microsoft/azure/functions/annotation/EventGridTrigger.java index ebed066..5df798c 100644 --- a/src/main/java/com/microsoft/azure/functions/annotation/EventGridTrigger.java +++ b/src/main/java/com/microsoft/azure/functions/annotation/EventGridTrigger.java @@ -21,14 +21,14 @@ import java.lang.annotation.Target; *
  • Any POJO type
  • * * - *

    The following example shows a Java function that prints out an event:

    + *

    The following example shows an event grid trigger which prints out the object:

    * - *
    {@literal @}FunctionName("eventGridMonitor")
    - * public void logEvent(
    - *    {@literal @}EventGridTrigger(name = "event") String content,
    + * 
    {@literal @}FunctionName("egprocessor")
    + * public void eventGridProcessor(
    + *    {@literal @}EventGridTrigger(name = "obj") MyModel obj,
      *     final ExecutionContext context
      * ) {
    - *     context.getLogger().info(content);
    + *     context.getLogger().info(obj.toString());
      * }
    * * @since 1.0.0