Skip to content

RuleCondition

Class in Oadm.Sdk.Events · Oadm.Sdk.dll

One condition. Simple mode: the conditions of a rule must all hold. The first is the trigger (an event); only the trigger may be stateless. Advanced mode (AND / OR groups) will extend this model.

public sealed class RuleCondition
Dictionary<string, string> Data { get; set; }

Optional filter: every listed event data field must equal its value.

DeviceSelector Devices { get; set; }

The devices whose event counts.

string? EventTypeId { get; set; }

The event type of an event condition.

RuleConditionKind Kind { get; set; }

An event or a schedule.

RuleSchedule? Schedule { get; set; }

The time window of a schedule condition.

RuleCondition Clone()

A copy.