A selector: an expression in rule text that evaluates to a list of picked events from a history.
Constructors
Spec.Selector.type (t : String) : Selector
EventType
Spec.Selector.list (ts : List String) : Selector
[EventType, ...]
Spec.Selector.any : Selector
any: every event of the history
Spec.Selector.except (a b : Selector) : Selector
a except b
Spec.Selector.filter (s : Selector) (c : CondExpr) : Selector
s where c; inside c, bare fields are fields of the picked event
Spec.Selector.byField (t : String) (fs : List String) : Selector
EventType(f1, ..., fn): events of that type whose fields f1 to fn each equal
the same field of the enclosing picked event, or of the incoming event if there is none
Spec.Selector.inEntity (s : Selector) (entity : String) (key : ValueExpr) : Selector
s in entity(key)
Spec.Selector.window (s : Selector) (w : Window) : Selector
s within n unit, s today, ... (preconditions only)