EventField
Record in Oadm.Sdk.Events · Oadm.Sdk.dll
A data field an event carries (“detection” = “blur”); a rule can check it (RuleCheck).
public sealed record EventField(string Name, string DisplayName, EventFieldType Type = Text, IReadOnlyList<string>? Values = null)Parameters
Name: The key in the event’s data, also its placeholder ({port}).DisplayName: What the rule dialog shows.Type: How a condition compares it.Values: The choices of aEventFieldType.Choicefield.
Properties
Section titled “Properties”DisplayName
Section titled “DisplayName”string DisplayName { get; init; }What the rule dialog shows.
Filter
Section titled “Filter”bool Filter { get; init; }False: a value only (a placeholder, a dashboard value), no check in the rule dialog. Default true.
EventValueKind Kind { get; init; }The kind of value: as declared, else from EventField.Type (EventFieldType.Number = number, any other type = text). It picks the operators of a rule’s checks and a dashboard’s widget.
string Name { get; init; }The key in the event’s data, also its placeholder ({port}).
EventFieldType Type { get; init; }How a condition compares it.
Values
Section titled “Values”IReadOnlyList<string>? Values { get; init; }The choices of a EventFieldType.Choice field.