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

Adding aggregations in event strategies

By adding aggregations, you can define various functions that can be applied to events in an event strategy. 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. In an event strategy, add an Aggregate shape.

  2. Open the Properties panel of the Aggregate shape.

  3. Click Add aggregation.

  4. From the list, select the function that you want to use.

  5. In the Source field, specify a property that is available in the data flow.

    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:

    The Source field is not available for the Count function.

  6. In the Aggregate field, provide a name.

    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. Aggregation names within an event strategy must be unique.

  7. Optional: Repeat steps 3 through 6 to add another aggregation.

  8. Click Submit.