pub type RulePredicate = Arc<dyn Fn(&AlertEvent) -> Option<AlertSeverity> + Send + Sync>;Expand description
A predicate function that inspects an AlertEvent and optionally returns
the severity at which the rule should fire. Returning None means the
rule does not match this event.
Aliased Typeยง
pub struct RulePredicate { /* private fields */ }