Alexey Velikiy
3 years ago
8 changed files with 62 additions and 5 deletions
@ -1,3 +1,6 @@ |
|||||||
trait AnalyticUnit<C> where C: AnalyticUnitConfig { |
pub mod pattern_detector; |
||||||
|
pub mod types; |
||||||
|
|
||||||
|
trait AnalyticUnit<C> { |
||||||
|
|
||||||
} |
} |
@ -1,3 +1,12 @@ |
|||||||
|
use serde::{Deserialize, Serialize}; |
||||||
|
|
||||||
|
#[derive(Debug, Serialize, Deserialize, Clone)] |
||||||
|
pub struct PatternDetectorConfig { |
||||||
|
pub correlation_score: f32, |
||||||
|
pub model_score: f32 |
||||||
|
} |
||||||
|
|
||||||
|
#[derive(Debug, Serialize, Deserialize, Clone)] |
||||||
pub enum AnalyticUnitConfig { |
pub enum AnalyticUnitConfig { |
||||||
PatternDetector(PatternDetectorConfig) |
PatternDetector(PatternDetectorConfig) |
||||||
} |
} |
Loading…
Reference in new issue