pub fn mgr_count_metadata(cluster_handle: &Rados, property: &str) -> RadosResult<HashMap<String, u64>> {
    let cmd = json!({
        "prefix": "mgr count-metadata",
        "name": property,
    });

    let result = cluster_handle.ceph_mon_command_without_data(&cmd)?;
    let return_data = String::from_utf8(result.0)?;
    Ok(serde_json::from_str(&return_data)?)
}
/// count ceph-mgr daemons by metadata field property
count ceph-mgr daemons by metadata field property
count ceph - mgr daemons by metadata field property
pub fn mgr_count_metadata(cluster_handle: &Rados, property: &str) -> RadosResult<HashMap<String, u64>> {
    let cmd = json!({
        "prefix": "mgr count-metadata",
        "name": property,
    });
    let result = cluster_handle.ceph_mon_command_without_data(&cmd)?;
    let return_data = String::from_utf8(result.0)?;
    Ok(serde_json::from_str(&return_data)?)
}
pub fn mgr_count_metadata ( cluster_handle : & Rados , property : & str ) -> RadosResult < HashMap < String , u64 > > { let cmd = json ! ( { " " " " " " property } ) ; let result = cluster_handle . ceph_mon_command_without_data ( & cmd ) ? ; let return_data = String :: from_utf8 ( result . 0 ) ? ; Ok ( serde_json :: from_str ( & return_data ) ? ) }
count ceph-mgr daemons by metadata field property
count ceph - mgr daemons by metadata field property
cluster_handle
&Rados
property
&str
cluster_handle
&Rados
property
&str