Description of a declarative rule for handling events.

interface Rule {
    actions: any[];
    conditions: any[];
    id?: string;
    priority?: number;
    tags?: string[];
}
Index
actions: any[]

List of actions that are triggered if one of the condtions is fulfilled.

conditions: any[]

List of conditions that can trigger the actions.

id?: string

Optional identifier that allows referencing this rule.

priority?: number

Optional priority of this rule. Defaults to 100.

tags?: string[]

Tags can be used to annotate rules and perform operations on sets of rules.