ActionCompleted
public sealed record ActionCompleted : IEquatable<ActionCompleted>
An alarm action that has done its work, whatever that turned out to be.
The counterpart to ActionError, 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.
This is the only way to learn that an alarm's snapshot reached the disk. Three outcomes were invisible in three different ways before it existed -- a written file said nothing at all, a skipped snapshot returned silently, and one dropped from a full queue was counted where nothing outside the SDK could read the count.
ActionCompleted: constructors
public ActionCompleted(ulong RuleId, int ActionIndex, ActionOutcome Outcome, string Path, TimeSpan Timestamp, ulong Sequence)
An alarm action that has done its work, whatever that turned out to be.
RuleId: Whose action this was.ActionIndex: Its position in that rule's action list.Outcome: What happened.Path: The file that was written, forActionOutcome.Written, and empty for every other outcome.Timestamp: The causing alarm event'sAlarmEvent.Timestamp, carried through unchanged. A stopwatch reading rather than a date, monotonic, and comparable only against other events of the same rule -- read that property's documentation before doing arithmetic on this one.Sequence: The causing alarm event'sAlarmEvent.Sequence, carried through unchanged. This is the field to correlate on: an application showing a line per activation already has it, so matching is exact where matching on a rule id and a nearby time is a guess a chattering alarm gets wrong.
The counterpart to ActionError, 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.
This is the only way to learn that an alarm's snapshot reached the disk. Three outcomes were invisible in three different ways before it existed -- a written file said nothing at all, a skipped snapshot returned silently, and one dropped from a full queue was counted where nothing outside the SDK could read the count.
ActionCompleted: properties
public int ActionIndex { get; init; }
Its position in that rule's action list.
public ActionOutcome Outcome { get; init; }
What happened.
public string Path { get; init; }
The file that was written, for ActionOutcome.Written, and empty for every other outcome.
public ulong RuleId { get; init; }
Whose action this was.
public ulong Sequence { get; init; }
The causing alarm event's AlarmEvent.Sequence, carried through unchanged. This is the field to correlate on: an application showing a line per activation already has it, so matching is exact where matching on a rule id and a nearby time is a guess a chattering alarm gets wrong.
public TimeSpan Timestamp { get; init; }
The causing alarm event's AlarmEvent.Timestamp, carried through unchanged. A stopwatch reading rather than a date, monotonic, and comparable only against other events of the same rule -- read that property's documentation before doing arithmetic on this one.