From 6f6f946b5b8efd1adbf816f0faefdbf584cfd0c4 Mon Sep 17 00:00:00 2001 From: Alexey Velikiy Date: Fri, 24 Dec 2021 16:43:53 +0300 Subject: [PATCH] DetectionRunner todos --- server/src/services/analytic_service/detection_runner.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/services/analytic_service/detection_runner.rs b/server/src/services/analytic_service/detection_runner.rs index 66ff8a4..eb3efcf 100644 --- a/server/src/services/analytic_service/detection_runner.rs +++ b/server/src/services/analytic_service/detection_runner.rs @@ -49,6 +49,7 @@ impl DetectionRunner { // TODO: parse detections to webhooks // TODO: define window for detection // TODO: handle case when detection is in the end and continues after "now" + // TODO: update t_from / t_to let window_size = au.as_ref().read().await.get_detection_window(); let mut t_from = from - window_size; let mut t_to = from; @@ -71,7 +72,6 @@ impl DetectionRunner { println!("detection: {} {}", d.0, d.1); } - // TODO: run detection periodically // TODO: set info about detections to tx match tx