Aggregation Node

      Aggregation Node


        Article summary

        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

        1. First, select your desired solution and navigate to Rayven Workflow.
        2. Select ‘Functions’ from the left-hand panel.
        3. Find the Aggregation node and drag it onto the canvas.
        4. Connect the Aggregation node to your desired input node.
        5. Double click on the Aggregation node to open its configuration window.



        Configuring your Aggregation node

        1. Give your node a Name. Choose something simple that clearly explains its purpose.
        2. Select the time interval you want the function calculated over.
        3. Choose whether you want to set an output delay. This figure must be numerical and measured in minutes.
        4. 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.
        5. Choose whether you want a delay between devices. This figure must be a numerical value and measured in milliseconds.
        6. Under 'Field to Aggregate', enter the JSON key that contains the field for which you want to combine payload data.
        7. Select your calculation function.
        8. 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.
        9. 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


        What's Next