Skip to main content

Module anomaly

Module anomaly 

Source
Expand description

Anomaly detection using Welford’s online algorithm for running mean/variance and triggering alerts at >3x standard deviation.

Structs§

AnomalyAlert
AnomalyDetector
MetricSummary
WelfordState

Functions§

record_metric
save
save_debounced
Debounced save: skips if less than 3s since last save. Use in hot paths (per-tool-call) to avoid excessive I/O.
summary