Skip to content

EventTypeInfo

Record in Oadm.Sdk.Events · Oadm.Sdk.dll

An event a source can publish. Id is stable and unique (“oadm.device-triggers.<id>”); DisplayName names the event in plain language (“Blur detected”), for a stateful event its “on” state; Group groups the picker of the rule dialog (“Image Health”).

public sealed record EventTypeInfo(string Id, string DisplayName, string Group, EventKind Kind, EventScope Scope = Device, IReadOnlyList<EventField>? Fields = null)

Guide: Event rules

Parameters

  • Id: Stable, unique id.
  • DisplayName: The event in plain words; for an on and off event its on state.
  • Group: The group in the event list of the rule dialog.
  • Kind: One-shot or on and off.
  • Scope: Per device or for the server.
  • Fields: The data fields a condition can filter on.
IReadOnlyList<EventField> DataFields { get; }

EventTypeInfo.Fields, never null.

string? Description { get; init; }

One short sentence for the rule dialog (optional).

string DisplayName { get; init; }

The event in plain words; for an on and off event its on state.

IReadOnlyList<EventField>? Fields { get; init; }

The data fields a condition can filter on.

string Group { get; init; }

The group in the event list of the rule dialog.

string Id { get; init; }

Stable, unique id.

EventKind Kind { get; init; }

One-shot or on and off.

EventScope Scope { get; init; }

Per device or for the server.