Skip to content

Transition

Transition (transition)

Track field transitions, elapsed time since last change, and optional state metadata.

Transform json

Minimal example

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

Contents

Fields

FieldTypeRequiredDescription
watch Inputfield (string)Field whose transitions are tracked.
Examples: data_field
description GeneralstringDescribe this step.
condition Generallua-expression (string)Only run this action when the Lua condition evaluates to true.
Examples: 2 * count()
marker OutputstringMarker written to new transition events.
time-field Inputfield (string)Field providing event timestamps.
Examples: data_field
input-time Inputfield (string)Alternate field containing event timestamps (legacy alias).
Examples: data_field
group-by Inputfield (string)Group transitions independently by this field.
Examples: data_field
max-age Behaviourduration (string)Drop keys that have not changed within this duration.
max-age-marker BehaviourstringOptional marker emitted when a key exceeds max-age.
threshold-count Behaviournumber (integer)Require this many consecutive observations in the new state before emitting.
Examples: 42, 1.2e-10
elapsed-output-field Outputfield (string)Field containing milliseconds since the previous transition.
Examples: data_field
value-at-last-change-output-field Outputfield (string)Field capturing the previous value before the change.
Examples: data_field
time-at-last-change-output-field Outputfield (string)Field capturing the timestamp of the last change.
Examples: data_field
time-at-last-change-output-format Outputtime-format (string)Format string used when writing timestamps.
threshold-count-output-field Diagnosticsfield (string)Field capturing the current threshold counter value.
Examples: data_field
candidate-transition-time-output-field Diagnosticsfield (string)Field recording the candidate transition time when still counting.
Examples: data_field
persistent-state-file Persistencepath (string)Optional on-disk snapshot of the transition state.
Examples: /path/to/file, c:\users\joe\data\file.txt

General

Show fields
FieldTypeRequiredDescription
descriptionstringDescribe this step.
conditionlua-expression (string)Only run this action when the Lua condition evaluates to true.
Examples: 2 * count()

Output

Show fields
FieldTypeRequiredDescription
markerstringMarker written to new transition events.
elapsed-output-fieldfield (string)Field containing milliseconds since the previous transition.
Examples: data_field
value-at-last-change-output-fieldfield (string)Field capturing the previous value before the change.
Examples: data_field
time-at-last-change-output-fieldfield (string)Field capturing the timestamp of the last change.
Examples: data_field
time-at-last-change-output-formattime-format (string)Format string used when writing timestamps.

Input

Show fields
FieldTypeRequiredDescription
watchfield (string)Field whose transitions are tracked.
Examples: data_field
time-fieldfield (string)Field providing event timestamps.
Examples: data_field
input-timefield (string)Alternate field containing event timestamps (legacy alias).
Examples: data_field
group-byfield (string)Group transitions independently by this field.
Examples: data_field

Behaviour

Show fields
FieldTypeRequiredDescription
max-ageduration (string)Drop keys that have not changed within this duration.
max-age-markerstringOptional marker emitted when a key exceeds max-age.
threshold-countnumber (integer)Require this many consecutive observations in the new state before emitting.
Examples: 42, 1.2e-10

Diagnostics

Show fields
FieldTypeRequiredDescription
threshold-count-output-fieldfield (string)Field capturing the current threshold counter value.
Examples: data_field
candidate-transition-time-output-fieldfield (string)Field recording the candidate transition time when still counting.
Examples: data_field

Persistence

Show fields
FieldTypeRequiredDescription
persistent-state-filepath (string)Optional on-disk snapshot of the transition state.
Examples: /path/to/file, c:\users\joe\data\file.txt