Skip to main content

evaluate

Function evaluate 

Source
pub fn evaluate(input: &NotifyInput, now: Timestamp) -> Vec<Alert>
Expand description

Every alert that is true at now, in AlertClass::ALL order.

Pure: now is an argument, nothing is read from the environment, and equal inputs give equal outputs. A suppressed class is skipped before its predicate runs, so suppression can never be observed as “fired but hidden”.

Absent facts emit nothing: None sync facts, None quota facts and zero counts are all silence, not an error.