From a601b2e0abe6d15e8a766631a3fe0b9c558c48d8 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 29 Jan 2021 11:25:31 +0800 Subject: [PATCH] pybind/mgr: correct a MgrModule annotation Signed-off-by: Kefu Chai (cherry picked from commit 3649ecf64ccb111c80218477f24021d70a78485f) --- src/pybind/mgr/mgr_module.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index be93431617c6f..918d6d252af2a 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -1152,7 +1152,7 @@ class MgrModule(ceph_module.BaseMgrModule, MgrModuleLoggingMixin): def get_counter(self, svc_type: str, svc_name: str, - path: str) -> List[Tuple[float, int]]: + path: str) -> Dict[str, List[Tuple[float, int]]]: """ Called by the plugin to fetch the latest performance counter data for a particular counter on a particular service. @@ -1161,8 +1161,9 @@ class MgrModule(ceph_module.BaseMgrModule, MgrModuleLoggingMixin): :param str svc_name: :param str path: a period-separated concatenation of the subsystem and the counter name, for example "mds.inodes". - :return: A list of two-tuples of (timestamp, value) is returned. This may be - empty if no data is available. + :return: A dict of counter names to their values. each value is a list of + of two-tuples of (timestamp, value). This may be empty if no data is + available. """ return self._ceph_get_counter(svc_type, svc_name, path) -- 2.39.5