From 4f5472c44fc82c1e9a426d833d6af5473defb8f1 Mon Sep 17 00:00:00 2001 From: delacal <l.delacal@alumnos.upm.es> Date: Thu, 27 Apr 2023 11:24:20 +0200 Subject: [PATCH] Added unique identifier to CAD --- .../l3_centralizedattackdetectorServiceServicerImpl.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/l3_centralizedattackdetector/service/l3_centralizedattackdetectorServiceServicerImpl.py b/src/l3_centralizedattackdetector/service/l3_centralizedattackdetectorServiceServicerImpl.py index d7dd00a8f..e65eb5a84 100644 --- a/src/l3_centralizedattackdetector/service/l3_centralizedattackdetectorServiceServicerImpl.py +++ b/src/l3_centralizedattackdetector/service/l3_centralizedattackdetectorServiceServicerImpl.py @@ -100,7 +100,7 @@ class l3_centralizedattackdetectorServiceServicerImpl(L3Centralizedattackdetecto self.cryptomining_detector_features_metadata.sort() LOGGER.info("Cryptomining Detector Features: " + str(self.cryptomining_detector_features_metadata)) - LOGGER.info("Batch size: " + BATCH_SIZE) + LOGGER.info("Batch size: " + str(BATCH_SIZE)) self.input_name = self.cryptomining_detector_model.get_inputs()[0].name self.label_name = self.cryptomining_detector_model.get_outputs()[0].name @@ -189,6 +189,10 @@ class l3_centralizedattackdetectorServiceServicerImpl(L3Centralizedattackdetecto self.total_predictions = 0 self.false_positives = 0 self.false_negatives = 0 + + self.replica_uuid = uuid.uuid4() + + LOGGER.info("This replica's identifier is: " + str(self.replica_uuid)) """ Create a monitored KPI for a specific service and add it to the Monitoring Client -- GitLab