optris_sdk_action_completed
An action that has done its work, whatever that turned out to be.
The counterpart to optris_sdk_action_error, delivered on the same thread and under the same rule: an action's fate never changes an alarm's state and never interrupts frame processing.
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_action_completed).
rule_id
uint64_t rule_id
Which rule's action this was.
action_index
uint32_t action_index
Its position in that rule's action list.
outcome
optris_sdk_action_outcome outcome
What happened.
path
char path[OPTRIS_SDK_MAX_PATH]
The file that was written, for OPTRIS_SDK_ACTION_OUTCOME_WRITTEN. Empty for every other outcome. UTF-8, NUL-terminated.
timestamp_us
uint64_t timestamp_us
The causing alarm event's timestamp_us, carried through unchanged.
Monotonic, and comparable only against other events of the same rule -- see optris_sdk_alarm_event::timestamp_us before doing arithmetic on it.
sequence
uint64_t sequence
The causing alarm event's sequence, carried through unchanged.
This is the field to correlate on. An application showing a line per activation already has the event's sequence, so matching this against it is exact, where matching on a rule id and a nearby time is a guess a chattering alarm gets wrong.