Skip to main content

DetectorFactory

Type Alias DetectorFactory 

Source
pub type DetectorFactory = Arc<dyn Fn(&Value) -> Result<Box<dyn AnomalyDetector>, PluginError> + Send + Sync>;
Expand description

Factory function that creates an anomaly detector from JSON configuration.

Aliased Type§

pub struct DetectorFactory { /* private fields */ }