A value expression: an expression in rule text that evaluates to a Value (which may be null).
Constructors
Spec.ValueExpr.field (f : String) : ValueExpr
bare field: field of the picked event; in per, a named value
Spec.ValueExpr.incoming (f : String) : ValueExpr
$field: field of the incoming event (preconditions only; in on the
incoming event is also the picked one)
Spec.ValueExpr.lit (v : Value) : ValueExpr
a literal: 500, 'Minibar', 2026-12-01
Spec.ValueExpr.arith (op : ArithOp) (a b : ValueExpr) : ValueExpr
a + b, a - b, a * b, a / b
Spec.ValueExpr.fn (f : Fn) (a : ValueExpr) : ValueExpr
round(a), floor(a), ceil(a), lower(a), weekday(a), day(a), time_of_day(a)
Spec.ValueExpr.range (a b : ValueExpr) : ValueExpr
range(a, b), end excluded
Spec.ValueExpr.dur (n : Nat) (u : TimeUnit) : ValueExpr
90 days
Spec.ValueExpr.now : ValueExpr
now(): the incoming event's at (preconditions only)
Spec.ValueExpr.lastField (s : Selector) (f : String) : ValueExpr
(last of s).field
Spec.ValueExpr.sum (s : Selector) (f : String) : ValueExpr
Spec.ValueExpr.count (s : Selector) : ValueExpr
count(s): how many events s picks
Spec.ValueExpr.min (s : Selector) (f : String) : ValueExpr
min((S).f): like sum; null if no picked event has a non-null f
Spec.ValueExpr.max (s : Selector) (f : String) : ValueExpr
max((S).f): like min, the largest