OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C API referencev12.0

optris_sdk_action_error

An action that could not be carried out.

Reported separately from the alarm because the two are different facts: an alarm is a fact about the world, and a failed snapshot is a fact about the disk. An action failing 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_error).

rule_id

uint64_t rule_id

Which rule's action failed.

action_index

uint32_t action_index

Its position in that rule's action list.

path

char path[OPTRIS_SDK_MAX_PATH]

The file it was trying to write, if any. UTF-8, NUL-terminated.

message

char message[OPTRIS_SDK_MAX_MESSAGE]

What went wrong. UTF-8, NUL-terminated.

sequence

uint64_t sequence

The causing alarm event's sequence, carried through unchanged.

The field to correlate on, as it is in optris_sdk_action_completed. A failed still has no file, so neither the path nor a rule id and a nearby time can say which activation failed; matching this against the event's sequence is exact.