Skip to content

ActionTrigger

Record in Oadm.Sdk.Actions · Oadm.Sdk.dll

What happened, handed to an action run.

public sealed record ActionTrigger(string EventTypeId, string EventName, Guid? DeviceId, string? DeviceAddress, string? DeviceModel, bool? State, DateTimeOffset TimeUtc, IReadOnlyDictionary<string, string> Data)

Parameters

  • EventTypeId: The event type.
  • EventName: Its name (“Input 1 active”).
  • DeviceId: The device of the event; null for server events.
  • DeviceAddress: Its address.
  • DeviceModel: Its model.
  • State: On or off for events that turn on and off; null for one-shot events.
  • TimeUtc: When it happened.
  • Data: The event’s values by name; also placeholders ({port}).
IReadOnlyDictionary<string, string> Data { get; init; }

The event’s values by name; also placeholders ({port}).

string? DeviceAddress { get; init; }

Its address.

Guid? DeviceId { get; init; }

The device of the event; null for server events.

string? DeviceModel { get; init; }

Its model.

string EventName { get; init; }

Its name (“Input 1 active”).

string EventTypeId { get; init; }

The event type.

bool? State { get; init; }

On or off for events that turn on and off; null for one-shot events.

DateTimeOffset TimeUtc { get; init; }

When it happened.