Skip to content

RuleCheck

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

One check of an event condition on a value of its event (SDK 0.9.0): “temperature” RuleCheckOperator.Gt “40”. All checks of a condition must hold; a value the event did not send fails.

public sealed class RuleCheck
string Field { get; set; }

The name of the event’s data field (EventField.Name); null reads as empty.

bool IsLegacy { get; init; }

An older equals filter of RuleCondition.Data read as a check (RuleCondition.AllChecks): it is checked as leniently as before field checks (RuleChecks.Problem). Never stored.

RuleCheckOperator Op { get; set; }

How the value is compared; it must fit the field’s EventField.Kind.

string Value { get; set; }

The value to compare with (numbers in invariant culture, “21.5”); empty for yes / no; null reads as empty.

RuleCheck Clone()

A copy.