]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/telemetry: refactor/enhance CLI commands
authorTatjana Dehler <tdehler@suse.com>
Tue, 7 Apr 2020 15:18:27 +0000 (17:18 +0200)
committerTatjana Dehler <tdehler@suse.com>
Wed, 29 Apr 2020 13:08:35 +0000 (15:08 +0200)
commit8d91443c8b932f8d24017e72cbbae58616928ab9
treec9b06b05f1620a8b8b6f0f5a6ccb44ed6644f071
parent55c5ec5a700469c2aa9b326a12fe4486f7eaf104
mgr/telemetry: refactor/enhance CLI commands

1. Move the implementations of the `on` and `off`
command into dedicated methods so that they can
be accessed by other mgr modules via `mgr.remote`.

2. Add a `show-all` command to return the report
and device report at once. Also add a method
`get_report` to make the reports accessible for
other mgr modules as mentioned above.

3. Add two  minor changes and a note where the
gathered data can be found to the Telemetry docu
file.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
doc/mgr/telemetry.rst
src/pybind/mgr/telemetry/module.py