Aggregation Node
Aggregation Node
Article summary
Did you find this summary helpful?
Thank you for your feedback
Aggregation Node
The Aggregation node combines data for a single device or device label into a single payload. It can reduce the number of payloads concurrently processed in the workflow, which can help your solution run faster.
Adding an Aggregation node to your workflow
- First, select your desired solution and navigate to Rayven Workflow.
- Select ‘Functions’ from the left-hand panel.
- Find the Aggregation node and drag it onto the canvas.
- Connect the Aggregation node to your desired input node.
- Double click on the Aggregation node to open its configuration window.
Configuring your Aggregation node
- Give your node a Name. Choose something simple that clearly explains its purpose.
- Select the time interval you want the function calculated over.
- Choose whether you want to set an output delay. This figure must be numerical and measured in minutes.
- Select the time zone type from the dropdown menu:
- Device Time Zone: takes the time zone from the configured Device Filter.
- Custom Time Zone: Select your time zone from a dropdown menu.
- Choose whether you want a delay between devices. This figure must be a numerical value and measured in milliseconds.
- Under 'Field to Aggregate', enter the JSON key that contains the field for which you want to combine payload data.
- Select your calculation function.
- Under 'Output Field Name', enter the JSON key you want to hold the aggregation output value. If the chosen key exists in the input to the aggregation node, the output will overwrite any previous values.
- Select whether to group the aggregated data by Device or Device Label.
- If 'Device' is selected, the node will only aggregate data for a specific device.
- If 'Device Label' is selected, the node will aggregate data for all devices sharing the same Device Label value (as configured in Device Management).
See Also: Device Filters and Device Labels
As of Release: 08.12.2021