]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr: correct a MgrModule annotation 40135/head
authorKefu Chai <kchai@redhat.com>
Fri, 29 Jan 2021 03:25:31 +0000 (11:25 +0800)
committerSage Weil <sage@newdream.net>
Tue, 16 Mar 2021 13:33:22 +0000 (08:33 -0500)
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 3649ecf64ccb111c80218477f24021d70a78485f)

src/pybind/mgr/mgr_module.py

index be93431617c6f9f33b8d943b7503871c12a50a89..918d6d252af2aac256bc0187176a98fc8e267705 100644 (file)
@@ -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)