]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr: Add get_rates_from_data to mgr_util.py
authorStephan Müller <smueller@suse.com>
Fri, 14 Jun 2019 13:45:53 +0000 (15:45 +0200)
committerStephan Müller <smueller@suse.com>
Thu, 23 Jan 2020 09:04:57 +0000 (10:04 +0100)
commit34976bae148aec013b53e1376b45a7af98e69b93
treee2f1c48d3dfef68bcf7f368af9ff7dae0275738f
parentf205d38c2c1940a4247ebdb4e795d18266d94497
mgr: Add get_rates_from_data to mgr_util.py

The function calculates the difference between the values
in a time series list.

The previous location of it was in the dashboard, that's why the
function has doc tests. In order to be able to test them as part of the
manager utilities a bit of tox magic was added.

Fixes: https://tracker.ceph.com/issues/40365
Signed-off-by: Stephan Müller <smueller@suse.com>
src/pybind/mgr/dashboard/controllers/osd.py
src/pybind/mgr/dashboard/services/ceph_service.py
src/pybind/mgr/dashboard/services/tcmu_service.py
src/pybind/mgr/mgr_util.py