Adding aggregations in event strategies
By adding aggregations, you can define various functions to apply to events in an event strategy. For example, you can sum property values from incoming events for trend detection, such as the number of dropped calls, transactions, or aggregated credit card purchases.
In an event strategy, add an Aggregate shape.
Right-click the Aggregate shape to open the Aggregate properties window.
Click Add aggregation.
Select a function to use for aggregating data.For more information, see Aggregation options in event strategies.
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 available through a stream 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:
Properties from aggregations within the same event strategy processed prior to the current one.
Properties that are coming from a preceding Lookup shape.
Properties that are coming from mapped fields from the preceding Join shapes.
In the Aggregate field, provide a name.The name is 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.
- Aggregation options in event strategies
You can aggregate values of event properties to derive such insights as sum, count, standard deviation, or median. By looking at the aggregated data, you can detect meaningful patterns that can help you optimize your next-best-action offering.
- Approximate median calculation
Use the approximate median to calculate the center value of a data group in which strong outliers might distort the outcome.
- Event Strategy rule form - Completing the Event Strategy tab
You use the Event Strategy tab to design and configure your event strategy components. A new instance of the Event strategy rule contains two shapes: Real-time data and Emit. You can add shapes by clicking the add icon that is available when you focus on a shape. To edit a shape, open the properties dialog box of a shape (by double-clicking the shape or by right-clicking and selecting the Properties option). The properties dialog box contains elements that are specific to a given shape.
- About Event strategy rule
Event strategies provide the mechanism to simplify the complex event processing operations. You specify patterns of events, query for them across a data stream, and react to the emerging patterns. The sequencing in event strategies is established through a set of instructions and execution points from real-time data to the final emit instruction. Between real-time data and emit, you can apply filter, window, aggregate, and static data instructions.
- Event Strategy rule - Completing the Create, Save As, or Specialization form