projects
/
osm
/
MON.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Feature 10339 - Enhanced Alarm Mgmt. (SOL005 FM Interface)
[osm/MON.git]
/
osm_mon
/
collector
/
vnf_metric.py
diff --git
a/osm_mon/collector/vnf_metric.py
b/osm_mon/collector/vnf_metric.py
index
92d3905
..
961a4ef
100644
(file)
--- a/
osm_mon/collector/vnf_metric.py
+++ b/
osm_mon/collector/vnf_metric.py
@@
-20,15
+20,21
@@
# contact: bdiaz@whitestack.com or glavado@whitestack.com
##
from osm_mon.collector.metric import Metric
# contact: bdiaz@whitestack.com or glavado@whitestack.com
##
from osm_mon.collector.metric import Metric
+import logging
+
+log = logging.getLogger(__name__)
class VnfMetric(Metric):
class VnfMetric(Metric):
- def __init__(self, nsr_id, vnf_member_index, vdur_name, name, value, extra_tags: dict = None):
+ def __init__(
+ self, nsr_id, vnf_member_index, vdur_name, name, value, extra_tags: dict = None
+ ):
tags = {
tags = {
-
'ns_id'
: nsr_id,
-
'vnf_member_index'
: vnf_member_index,
- 'vdu_name': vdur_name
+
"ns_id"
: nsr_id,
+
"vnf_member_index"
: vnf_member_index,
+ "vdu_name": vdur_name,
}
if extra_tags:
tags.update(extra_tags)
}
if extra_tags:
tags.update(extra_tags)
+ log.debug("Tags: %s", tags)
super().__init__(tags, name, value)
super().__init__(tags, name, value)