Skip to content

Delta

Convenience wrapper that enables stream delta mode with a slim option set.

Stateful Transform json

actions:
- delta:
watch: ""
JSON
{
"actions": [
{
"delta": {
"watch": ""
}
}
]
}

A ✓ marks a field that accepts a context variable such as {{ VARIABLE }}.

Behaviour
Field Type Required Description
only-changes boolean (bool) Only emit deltas when the watched field changes.
Default: false
General
Field Type Required Description
description string Describe this step.
condition lua-expression (string) Only run this action when the Lua condition evaluates to true.
Examples: 2 * count()
Input
Field Type Required Description
watch field (string) Field whose numeric value should be differenced.
Examples: data_field
group-by field (string) Group state independently per key.
Examples: data_field
input-time field (string) Field containing event time for elapsed calculations.
Examples: data_field
Output
Field Type Required Description
marker string Optional marker applied to emitted delta events.
output-field field (string) Field name where the delta is written.
Examples: data_field
elapsed-field field (string) Field name where elapsed milliseconds are written.
Examples: data_field