filters.Clause
One filter rule: when predicate holds, apply action.
Usage
filters.Clause(
predicate,
action=Action.DROP,
applies_to=frozenset(),
negate=False,
label=None
)Parameter Attributes
predicate: Predicateaction: Action = Action.DROPapplies_to: frozenset[EventKind] = frozenset()negate: bool = Falselabel: str | None = None
Attributes
predicate: Predicate-
The condition tested against an event.
action: Action-
DROPremoves the event (first drop wins, stops evaluation);TAGrecordslabelon a surviving event and continues. applies_to: frozenset[EventKind]-
When non-empty, the clause is only evaluated for these kinds.
negate: bool-
Invert the predicate match.
label: str | None-
The label recorded by a
TAGclause.