AnomalyDetector

Trait AnomalyDetector 

Source
pub trait AnomalyDetector: Send + Sync {
    // Required methods
    fn detect(&self, data: &[f64]) -> Vec<AnomalyResult>;
    fn update(&mut self, data: &[f64]);
    fn config(&self) -> AnomalyDetectorConfig;
}
Expand description

Anomaly detector trait

Required Methods§

Source

fn detect(&self, data: &[f64]) -> Vec<AnomalyResult>

Detect anomalies in metric data

Source

fn update(&mut self, data: &[f64])

Update detector with new data

Source

fn config(&self) -> AnomalyDetectorConfig

Get detector configuration

Implementors§