Sampling
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 .
The Sampling Action allows only a specific number of allowed events out of every set of n events to go through it.
In order to configure this action, you must first link it to a Listener. Go to Building a Pipeline to learn how to link.
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:
Allowed Events*
The number of events to sample. The first n events will be filtered from each set of total events indicated.
Total Events*
Out of how many total events that are entering the action. When the number of allowed events is filtered, a new set with this number of total events will be taken again.
Click Save to complete.
Let's say we want to filter the first event out of each set of 3 of our input events. To do it:
Add the Sampling Action to your Pipeline and link it to your required Listener.
Now, double-click the Sampling Action to configure it. You need to set the following config:
Allowed Events
Enter 1.
Total Events
Enter 3.
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.
From this set of events:
We will get the following (the first event for each set of 3 events):