Skip to main content

evaluate_alerts

Function evaluate_alerts 

Source
pub fn evaluate_alerts(
    loop_state: &mut AlertLoopState,
    sample: &HealthSample,
    cfg: &AlertsConfig,
    now: Instant,
) -> Vec<Alert>
Expand description

Pure alert policy: compare the current sample against the previous one and the per-class cooldowns. The first poll only establishes a baseline.