You are here: Reference > Rule types > Event Strategy > Adding aggregators in event strategies

Adding aggregators in event strategies

By adding aggregators, you can define various functions that can be applied to events in an event strategy rule. For example, you can sum property values from incoming events for trend detection, such as detecting the number of dropped calls, certain transactions, or aggregated purchases conducted with a credit card.

  1. Hover over the shape after which you want to aggregate values, and click the Plus icon.
  2. Select Aggregate from the list of available options.

    Note: To use aggregators in an event strategy, a Window shape must be placed and configured before the Aggregate shape.

  3. Open the Properties panel of an Aggregate shape by double-clicking the shape.
  4. Click Add aggregator.
  5. From the drop-down list, select the function that you want to use. Available options are:
  6. In the Source field, specify a property that is available in the data flow.

    Note: By default, all properties defined in the event strategy class are made available through a streamed data set. This makes properties of the event strategy class available to the Real-time Data stream shape. Depending on how the event strategy is constructed, additional properties can be available in the list of the aggregate source field. Additional properties can include:

    Note: The Source field is not available for the Count function.

  7. In the Aggregate field, provide a name.

    Note: The name allows for creating a dynamic property that exists only in the context of the event strategy. The dynamic property contains the result of the aggregation function. Aggregator names within an event strategy must be unique.

  8. Optional: Repeat these steps to add another aggregator.

  9. Click Submit.