
Downsampling
Keeps only a percentage of events to reduce volume. Stable sampling keeps the same distinct IDs as the percentage grows; random sampling decides per event.
Configuration
| Option | Description |
|---|---|
Percentage of events to keepType: number Required: True | A number between 0 and 100. 100 keeps every event, 0 drops every event. |
Use random samplingType: boolean Required: False | When off, sampling is stable per distinct ID, so raising the percentage only adds events. When on, each event is decided independently. |
Events to sampleType: string Required: False | Comma-separated event names to sample. Leave empty to sample every event. |
Using our REST API you can create this transformation like so:
Terminal