Skip to content

RuleAction

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

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).

public sealed class RuleAction
string ActionId { get; set; }

The id of the action.

Guid Key { get; set; }

Stable id of the action within its rule (new actions: a new Guid): stored password values follow it.

JsonObject Settings { get; set; }

The action’s settings by field key.

List<string> StoredSecretFields { get; set; }

Read: password fields with a value stored on the server. Write: leave such a field empty to keep the stored value; a field missing from this list and empty clears it.

DeviceSelector Targets { get; set; }

The devices it runs on.

RuleAction Clone()

A copy.