ThresholdCalculationAlgorithm

Trait ThresholdCalculationAlgorithm 

Source
pub trait ThresholdCalculationAlgorithm: Send + Sync {
    // Required methods
    fn calculate_threshold(&self, data: &[PerformanceDataPoint]) -> f64;
    fn name(&self) -> &str;
    fn config(&self) -> HashMap<String, String>;
}
Expand description

Threshold calculation algorithm trait

Required Methods§

Source

fn calculate_threshold(&self, data: &[PerformanceDataPoint]) -> f64

Calculate threshold based on historical data

Source

fn name(&self) -> &str

Get algorithm name

Source

fn config(&self) -> HashMap<String, String>

Get algorithm configuration

Implementors§