Delta
Delta (delta)
Convenience wrapper that enables stream delta mode with a slim option set.
Transform json
Minimal example
actions: - delta: watch: ""JSON
{ "actions": [ { "delta": { "watch": "" } } ]}Contents
Fields
| Field | Type | Required | Description |
|---|---|---|---|
watch Input | field (string) | ✅ | Field whose numeric value should be differenced. Examples: data_field |
description General | string | Describe this step. | |
condition General | lua-expression (string) | Only run this action when the Lua condition evaluates to true. Examples: 2 * count() | |
marker Output | string | Optional marker applied to emitted delta events. | |
group-by Input | field (string) | Group state independently per key. Examples: data_field | |
input-time Input | field (string) | Field containing event time for elapsed calculations. Examples: data_field | |
output-field Output | field (string) | Field name where the delta is written. Examples: data_field | |
elapsed-field Output | field (string) | Field name where elapsed milliseconds are written. Examples: data_field | |
only-changes Behaviour | boolean (bool) | Only emit deltas when the watched field changes. |
General
Show fields
| 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
Show fields
| 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
Show fields
| 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 |
Behaviour
Show fields
| Field | Type | Required | Description |
|---|---|---|---|
only-changes | boolean (bool) | Only emit deltas when the watched field changes. |