Called by the plugin to fetch named cluster-wide objects from ceph-mgr. :param str data_name: Valid things to fetch are osdmap_crush_map_text, osd_map, osd_map_tree, osd_map_crush, config, mon_map, fs_map, osd_metadata, pg_summary, io_rate, pg_dump,
(self, data_name: str, mutable: bool = False)
| 1495 | |
| 1496 | @API.expose |
| 1497 | def get(self, data_name: str, mutable: bool = False) -> Any: |
| 1498 | """ |
| 1499 | Called by the plugin to fetch named cluster-wide objects from ceph-mgr. |
| 1500 | |
| 1501 | :param str data_name: Valid things to fetch are osdmap_crush_map_text, |
| 1502 | osd_map, osd_map_tree, osd_map_crush, config, mon_map, fs_map, |
| 1503 | osd_metadata, pg_summary, io_rate, pg_dump, df, osd_stats, |
| 1504 | health, mon_status, devices, device <devid>, pg_stats, |
| 1505 | pool_stats, pg_ready, osd_ping_times, mgr_map, mgr_ips, |
| 1506 | modified_config_options, service_map, mds_metadata, |
| 1507 | have_local_config_map, osd_pool_stats, pg_status. |
| 1508 | :param bool mutable: If True, returns a mutable copy of the data that can |
| 1509 | be modified safely. If False (default), returns read-only cached |
| 1510 | data (in case cached enabled) for better performance and cache protection. |
| 1511 | |
| 1512 | Note: |
| 1513 | All these structures have their own JSON representations: experiment |
| 1514 | or look at the C++ ``dump()`` methods to learn about them. |
| 1515 | """ |
| 1516 | return self._ceph_get(data_name, mutable) |
| 1517 | |
| 1518 | @API.expose |
| 1519 | def erase(self, data_name: str) -> None: |
no test coverage detected