projects
/
osm
/
MON.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adds support for custom project and user domain names defined in vim config
[osm/MON.git]
/
osm_mon
/
evaluator
/
service.py
diff --git
a/osm_mon/evaluator/service.py
b/osm_mon/evaluator/service.py
index
0868e32
..
3865b17
100644
(file)
--- a/
osm_mon/evaluator/service.py
+++ b/
osm_mon/evaluator/service.py
@@
-55,15
+55,17
@@
class EvaluatorService:
def _get_metric_value(self,
nsr_id: str,
def _get_metric_value(self,
nsr_id: str,
- vnf_member_index:
int
,
+ vnf_member_index:
str
,
vdur_name: str,
metric_name: str):
vdur_name: str,
metric_name: str):
- return BACKENDS[self.conf.get('evaluator', 'backend')]().get_metric_value(metric_name, nsr_id, vdur_name,
- vnf_member_index)
+ return BACKENDS[self.conf.get('evaluator', 'backend')](self.conf).get_metric_value(metric_name,
+ nsr_id,
+ vdur_name,
+ vnf_member_index)
def _evaluate_metric(self,
nsr_id: str,
def _evaluate_metric(self,
nsr_id: str,
- vnf_member_index:
int
,
+ vnf_member_index:
str
,
vdur_name: str,
metric_name: str,
alarm: Alarm):
vdur_name: str,
metric_name: str,
alarm: Alarm):