Accumulator
Most recent version: v0.0.1
Last updated
Was this helpful?
Most recent version: v0.0.1
Last updated
Was this helpful?
See the changelog of this Action type here.
Note that this Action is only available in certain Tenants. Contact us if you need to use it and don't see it in your Tenant.
The Accumulator Action accumulates events before sending them on.
In order to configure this action, you must first link it to a Listener. Go to Building a Pipeline to learn how to link.
AI Action Assistant
This Action has an AI-powered chat feature that can help you configure its parameters. Read more about it in this article.
These are the input and output ports of this Action:
To open the configuration, click the Action in the canvas and select Configuration.
Enter the required parameters:
Fields list
Choose the input event fields you would like to accumulate. The values of the selected fields would be included in a new column according to the rules set in the following parameters.
You can select an infinite number of fields using the Add element button.
Accumulate type*
Choose how to accumulate the events:
By period - if you select by period, define the number of seconds to accumulate for.
By number of events - If you select this option, define how many you want to include in the Number of events parameter.
Accumulate period
The minimum value is 1.
Number of events
Enter the number of events you want to accumulate in the output field. The values of the selected fields will be included in the field as many times as you indicate here. The minimum value is 1.
Output*
Enter a name for the output field that will store the accumulated events.
Click Save to complete.
Let's say we want to accumulate the values of a couple of fields (port
and method
) in a new one.
Add the Accumulator Action to your Pipeline and link it to your required Listener.
Now, double-click the Accumulator Action to configure it. You need to set the following config:
Fields list
We add the fields whose values we want to accumulate: port
and method
.
Accumulate type
Choose By number of events.
Number of events
We want to add a couple of results to our field so we enter 2
.
Output
This is the name of the new field that will store the accumulated event. We'll call it accValues
.
Now link the Default output port of the Action to the input port of your Data sink.
Finally, click Publish and choose which clusters you want to publish the Pipeline in.
Click Test pipeline at the top of the area and choose a specific number of events to test if your data is transformed properly. Click Debug to proceed.
This is how the new field will return for these events: