OptrisOptrisDocumentation

Documentation/OTC SDK/Optris.Sdk — C# API referencev12.0

ActionError

public sealed record ActionError : IEquatable<ActionError>

An alarm 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 snapshot that could not be written is a fact about the disk. The alarm's state is unaffected.

ActionError: constructors

public ActionError(ulong RuleId, int ActionIndex, string Path, string Message)

An alarm action that could not be carried out.

  • RuleId: Whose action failed.
  • ActionIndex: Its position in that rule's action list.
  • Path: The file it was trying to write, if any.
  • Message: What went wrong.

Reported separately from the alarm because the two are different facts: an alarm is a fact about the world, and a snapshot that could not be written is a fact about the disk. The alarm's state is unaffected.

ActionError: properties

public int ActionIndex { get; init; }

Its position in that rule's action list.

public string Message { get; init; }

What went wrong.

public string Path { get; init; }

The file it was trying to write, if any.

public ulong RuleId { get; init; }

Whose action failed.

public ulong Sequence { get; init; }

The causing alarm event's AlarmEvent.Sequence, carried through unchanged.

The field to correlate on, as on ActionCompleted.Sequence. A failed still has no file, so neither the path nor the rule and a nearby time can say which activation failed; matching this against the event's sequence is exact. A property rather than a constructor parameter, so code that builds an ActionError itself keeps compiling.