scanner status command(1)

Signed-off-by: mujunxiang <1948535941@qq.com>
This commit is contained in:
mujunxiang
2024-12-02 21:18:16 +08:00
parent 8c632986a0
commit f87b2bee95
29 changed files with 1363 additions and 145 deletions
+5
View File
@@ -8,5 +8,10 @@ lazy_static! {
pub static ref GLOBAL_Local_Node_Name: RwLock<String> = RwLock::new("".to_string());
pub static ref GLOBAL_Rustfs_Host: RwLock<String> = RwLock::new("".to_string());
pub static ref GLOBAL_Rustfs_Port: RwLock<String> = RwLock::new("9000".to_string());
pub static ref GLOBAL_Rustfs_Addr: RwLock<String> = RwLock::new("".to_string());
pub static ref GLOBAL_Conn_Map: RwLock<HashMap<String, Channel>> = RwLock::new(HashMap::new());
}
pub async fn set_global_addr(addr: &str) {
*GLOBAL_Rustfs_Addr.write().await = addr.to_string();
}
@@ -735,8 +735,8 @@ pub struct GetMemInfoResponse {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMetricsRequest {
#[prost(uint64, tag = "1")]
pub metric_type: u64,
#[prost(bytes = "vec", tag = "1")]
pub metric_type: ::prost::alloc::vec::Vec<u8>,
#[prost(bytes = "vec", tag = "2")]
pub opts: ::prost::alloc::vec::Vec<u8>,
}
+1 -1
View File
@@ -504,7 +504,7 @@ message GetMemInfoResponse {
}
message GetMetricsRequest {
uint64 metric_type = 1;
bytes metric_type = 1;
bytes opts = 2;
}