Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Use this button to update and view the most current state of the aggregation sessions or data being displayed.

Metadata

There may be instances where you want to apply certain rules to aggregated data, such as applying a discount or adjusting values based on specific business rules. You can achieve this by using the Script function. If you need to reference metadata from aggregated sessions, such as the number of records or timestamps, you can access it using the meta-variable as described in Supported Variables/APIs.

Info

Example- metadata for an aggregated session

This example shows a JSON object representing metadata about a Data Aggregator function. It shows an aggregation session, including details about the events processed and how the data was flushed.

Code Block
{"origin":"Data_Aggregator","count":7,"flushType":"TIMEOUT","firstEvent":"2022-04-08T17:35:53.239Z","lastEvent":"2022-04-08T17:38:17.315Z","lastCall":false}

...

Property nameĀ 

...

Description

...

origin

...

This indicates that the data comes from the Data Aggregator component of the stream

...

count

...

Number of aggregated records

...

flushType

...

The reason for the session being flushed out. Shows any of the values: ALL_FILES, EACH_FILE, TIMEOUT, andĀ CONDITION. During preview, the value will be empty.

...

firstEvent

...

Date and time of the first aggregated record in the session

...

lastEvent

...

Date and time of the last aggregated record in the session

...

lastCall

...

This indicates that this flush is not the final flush of the stream. There may still be more data to process, and additional flushes will happen later.