Browse Source

empty patterns case + todos

pull/25/head
Alexey Velikiy 2 years ago
parent
commit
ae3d23c55e
  1. 4
      server/src/services/analytic_service/analytic_unit/pattern_analytic_unit.rs
  2. 4
      server/src/services/analytic_service/detection_runner.rs

4
server/src/services/analytic_service/analytic_unit/pattern_analytic_unit.rs

@ -287,6 +287,10 @@ impl AnalyticUnit for PatternAnalyticUnit {
}
}
if learn_tss.len() == 0 {
return LearningResult::FinishedEmpty;
}
let mut patterns = Vec::<Vec<f64>>::new();
let mut anti_patterns = Vec::<Vec<f64>>::new();

4
server/src/services/analytic_service/detection_runner.rs

@ -22,6 +22,8 @@ impl DetectionRunner {
}
pub async fn run() {
// TODO: await detection step
// TODO: get last detection timestamp from persistance
// TODO: set lst detection from "now"
}
}

Loading…
Cancel
Save