summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/services/cluster.py
diff options
context:
space:
mode:
authorAashish Sharma <aasharma@li-e74156cc-2f67-11b2-a85c-e98659a63c5c.ibm.com>2023-07-20 09:01:59 +0200
committerAashish Sharma <aasharma@li-e74156cc-2f67-11b2-a85c-e98659a63c5c.ibm.com>2023-07-27 08:01:43 +0200
commit6a21d601236163de0f9ce6a8bf435c1d77aa0d38 (patch)
treeed2717ae8f9b5a4bae968a4c9304f1e49f7f5558 /src/pybind/mgr/dashboard/services/cluster.py
parentmgr/dashboard: add single stat cards to rgw overview dashboard (diff)
downloadceph-6a21d601236163de0f9ce6a8bf435c1d77aa0d38.tar.xz
ceph-6a21d601236163de0f9ce6a8bf435c1d77aa0d38.zip
mgr/dashboard: Add inventory card and two single stat panels to rgw
overview dashboard Signed-off-by: Aashish Sharma <aasharma@redhat.com>
Diffstat (limited to '')
-rw-r--r--src/pybind/mgr/dashboard/services/cluster.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pybind/mgr/dashboard/services/cluster.py b/src/pybind/mgr/dashboard/services/cluster.py
index 6cefd532ed8..f239471d8f3 100644
--- a/src/pybind/mgr/dashboard/services/cluster.py
+++ b/src/pybind/mgr/dashboard/services/cluster.py
@@ -63,6 +63,7 @@ class ClusterModel:
total_objects=total_objects,
total_pool_bytes_used=total_pool_bytes_used,
average_object_size=average_object_size)._asdict()
+
@classmethod
def get_rgw_pools(cls):
rgw_pool_names = []
@@ -71,4 +72,3 @@ class ClusterModel:
if 'rgw' in pool.get('application_metadata', {}):
rgw_pool_names.append(pool['pool_name'])
return rgw_pool_names
-