X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Fplugins%2FCloudWatch%2Fplugin_metric.py;h=b6508a5dc6d59f8831cf2318578120d3094e44d7;hb=565745598ff16a20ed2bfbfabe8272ad40b3031b;hp=8c897d8a3116d559fd17872b21465a8e71deecbd;hpb=715a0ae6b46d22171c0f98c989cd971ea8b306bc;p=osm%2FMON.git diff --git a/osm_mon/plugins/CloudWatch/plugin_metric.py b/osm_mon/plugins/CloudWatch/plugin_metric.py index 8c897d8..b6508a5 100644 --- a/osm_mon/plugins/CloudWatch/plugin_metric.py +++ b/osm_mon/plugins/CloudWatch/plugin_metric.py @@ -33,7 +33,9 @@ from metric_alarms import MetricAlarm from metrics import Metrics sys.path.append("../../core/message_bus") from producer import KafkaProducer -import logging as log +import logging + +log = logging.getLogger(__name__) class plugin_metrics(): """Receives Alarm info from MetricAlarm and connects with the consumer/producer """ @@ -69,15 +71,7 @@ class plugin_metrics(): #--------------------------------------------------------------------------------------------------------------------------- def metric_calls(self,message,aws_conn): - '''Consumer will consume the message from SO, - 1) parse the message and trigger the methods ac - cording to keys and topics provided in request. - - 2) The response from plugin is saved in json format. - - 3) The producer object then calls the producer response - methods to send the response back to message bus - ''' + """Gets the message from the common consumer""" try: self.cloudwatch_conn = aws_conn['cloudwatch_connection']