projects
/
osm
/
MON.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Readds plugins code and respective tests
[osm/MON.git]
/
osm_mon
/
collector
/
collectors
/
base.py
diff --git
a/osm_mon/collector/collectors/base.py
b/osm_mon/collector/collectors/base.py
index
a97903d
..
824e106
100644
(file)
--- a/
osm_mon/collector/collectors/base.py
+++ b/
osm_mon/collector/collectors/base.py
@@
-19,11
+19,11
@@
# For those usages not covered by the Apache License, Version 2.0 please
# contact: bdiaz@whitestack.com or glavado@whitestack.com
##
# For those usages not covered by the Apache License, Version 2.0 please
# contact: bdiaz@whitestack.com or glavado@whitestack.com
##
+from typing import List
+from osm_mon.collector.metric import Metric
-class BaseCollector:
- def collect(self, vnfr: dict):
- pass
- def collect_one(self, nsr_id: str, vnf_member_index: int, vdur_name: str, metric_name: str):
+class BaseCollector:
+ def collect(self, vnfr: dict) -> List[Metric]:
pass
pass