Skip to main content

Module eval

Module eval 

Source
Expand description

Pure SLA evaluation: staleness, static volume floor, and learned-baseline volume anomaly detection (z-score / Tukey IQR fences). No I/O — the orchestration in sla::evaluate_post_run owns state loading/persisting.

Enums§

SlaViolation
One detected SLA violation.

Functions§

detect_anomaly
Run the configured detector; Some(detail) when rows is anomalous against baseline. Callers guarantee baseline.len() >= min_history >= 2.
evaluate_failure
Checks that apply to a failed run: staleness of the last success. A pipeline with no recorded success yet cannot be measured (cold start).
evaluate_success
Checks that apply to a successful run: the static floor and the learned-baseline anomaly, both against the prior baseline (before this run’s volume is folded in).