Skip to content
Snippets Groups Projects
Commit 4f5472c4 authored by delacal's avatar delacal
Browse files

Added unique identifier to CAD

parent e88cecd0
No related branches found
No related tags found
2 merge requests!142Release TeraFlowSDN 2.1,!128Fixes on L3 Cybersecurity components
...@@ -100,7 +100,7 @@ class l3_centralizedattackdetectorServiceServicerImpl(L3Centralizedattackdetecto ...@@ -100,7 +100,7 @@ class l3_centralizedattackdetectorServiceServicerImpl(L3Centralizedattackdetecto
self.cryptomining_detector_features_metadata.sort() self.cryptomining_detector_features_metadata.sort()
LOGGER.info("Cryptomining Detector Features: " + str(self.cryptomining_detector_features_metadata)) 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.input_name = self.cryptomining_detector_model.get_inputs()[0].name
self.label_name = self.cryptomining_detector_model.get_outputs()[0].name self.label_name = self.cryptomining_detector_model.get_outputs()[0].name
...@@ -189,6 +189,10 @@ class l3_centralizedattackdetectorServiceServicerImpl(L3Centralizedattackdetecto ...@@ -189,6 +189,10 @@ class l3_centralizedattackdetectorServiceServicerImpl(L3Centralizedattackdetecto
self.total_predictions = 0 self.total_predictions = 0
self.false_positives = 0 self.false_positives = 0
self.false_negatives = 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 Create a monitored KPI for a specific service and add it to the Monitoring Client
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment