Interface EventModifier

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface EventModifier
A modifier function that is used to enrich a given event as JSONObject. The returned event can be a modified version of the event JSON or null if the event should be dropped.
Since:
8.303
  • Method Summary

    Modifier and Type
    Method
    Description
    A modifier function that is used to enrich a given event as JSONObject.
  • Method Details

    • modifyEvent

      JSONObject modifyEvent(JSONObject event)

      A modifier function that is used to enrich a given event as JSONObject.

      The returned event can be a modified version of the event JSON or null if the event should be dropped.

      Parameters:
      event - a deep copy of the current JSON event
      Returns:
      the modified event or null if the event should be dropped