From e38dd25bf679d09a09dc4231b03901d2b688c3a8 Mon Sep 17 00:00:00 2001 From: junxiang Mu <1948535941@qq.com> Date: Thu, 24 Apr 2025 08:21:09 +0000 Subject: [PATCH] fix admin info Signed-off-by: junxiang Mu <1948535941@qq.com> --- madmin/src/info_commands.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/madmin/src/info_commands.rs b/madmin/src/info_commands.rs index 72c5972f2..53afc8c13 100644 --- a/madmin/src/info_commands.rs +++ b/madmin/src/info_commands.rs @@ -45,7 +45,9 @@ pub struct DiskMetrics { #[derive(Serialize, Deserialize, Debug, Default, Clone)] pub struct Disk { pub endpoint: String, + #[serde(rename = "rootDisk")] pub root_disk: bool, + #[serde(rename = "path")] pub drive_path: String, pub healing: bool, pub scanning: bool, @@ -54,12 +56,19 @@ pub struct Disk { pub major: u32, pub minor: u32, pub model: Option, + #[serde(rename = "totalspace")] pub total_space: u64, + #[serde(rename = "usedspace")] pub used_space: u64, + #[serde(rename = "availspace")] pub available_space: u64, + #[serde(rename = "readthroughput")] pub read_throughput: f64, + #[serde(rename = "writethroughput")] pub write_throughput: f64, + #[serde(rename = "readlatency")] pub read_latency: f64, + #[serde(rename = "writelatency")] pub write_latency: f64, pub utilization: f64, pub metrics: Option,