Skip to content

Oadm.Sdk.Events

Events for the event rules and the rule model.

Type Description
IDynamicEventSource An event source whose types change while it runs (types the user creates, e.g.
IEventPublisher Publishes events to the server’s event rules.
IEventSource A core plugin that publishes events for the event rules implements this next to ICorePlugin and publishes through ICorePluginContext.EventPublisher.
IEventSubscriptions Lets a core plugin receive every event published to the server, the same ones the event rules see (ICorePluginContext.EventSubscriptions).
Type Description
DeviceSelector Which devices a condition or an action applies to.
RuleAction One action of a rule: the action plugin, its targets (devices for actions that act on devices) and its settings (JSON object; password fields are never sent to clients, see RuleAction.StoredSecretFields).
RuleCheck One check of an event condition on a value of its event (SDK 0.9.0): “temperature” RuleCheckOperator.Gt “40”.
RuleChecks The rules of field checks shared by the server and the rule dialog (SDK 0.9.0).
RuleCondition One condition.
RuleDefinition An event rule as clients edit it (definition JSON of gRPC EventService).
RuleSchedule Weekdays plus from / to (“08:00”, “18:00”); a “to” at or before “from” runs over midnight.
Type Description
EventField A data field an event carries (“detection” = “blur”); a rule can check it (RuleCheck).
EventTypeInfo An event a source can publish.
PublishedEvent An event as it was published to the server: by a plugin through IEventPublisher or by OADM itself (Device unreachable, Certificate expires soon).
SubscribedEventType An event type the server knows, as a subscriber sees it (the catalog of the rule dialog).
Type Description
DeviceSelectorMode Which devices a condition or an action means.
EventFieldType Type of an event data field; it gives EventField.Kind when the field declares no kind.
EventKind Stateless events are one-shot pulses (“rollout failed”); stateful events are on or off (“blur detected” until it clears).
EventScope Device: one state (or pulse) per managed device.
EventValueKind What kind of value a data field holds, as the device or plugin declares it (a dashboard picks its widget by it).
PublishedEventKind What happened in a PublishedEvent.
RuleCheckOperator How a field check compares an event value (SDK 0.9.0).
RuleConditionKind What a condition checks.