X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Fcollector%2Fcollectors%2Fbase.py;h=824e106deccf9f0929393575aec6825f476730f4;hb=refs%2Fchanges%2F32%2F6932%2F7;hp=a97903d19a76107f9f676651fd9dde92a0af37ba;hpb=9604945f57dbff85cf7948b475d6e86a0e5a2c90;p=osm%2FMON.git diff --git a/osm_mon/collector/collectors/base.py b/osm_mon/collector/collectors/base.py index a97903d..824e106 100644 --- 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 ## +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