mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-31 17:28:12 +00:00
@@ -45,7 +45,9 @@ pub struct DiskMetrics {
|
|||||||
#[derive(Serialize, Deserialize, Debug, Default, Clone)]
|
#[derive(Serialize, Deserialize, Debug, Default, Clone)]
|
||||||
pub struct Disk {
|
pub struct Disk {
|
||||||
pub endpoint: String,
|
pub endpoint: String,
|
||||||
|
#[serde(rename = "rootDisk")]
|
||||||
pub root_disk: bool,
|
pub root_disk: bool,
|
||||||
|
#[serde(rename = "path")]
|
||||||
pub drive_path: String,
|
pub drive_path: String,
|
||||||
pub healing: bool,
|
pub healing: bool,
|
||||||
pub scanning: bool,
|
pub scanning: bool,
|
||||||
@@ -54,12 +56,19 @@ pub struct Disk {
|
|||||||
pub major: u32,
|
pub major: u32,
|
||||||
pub minor: u32,
|
pub minor: u32,
|
||||||
pub model: Option<String>,
|
pub model: Option<String>,
|
||||||
|
#[serde(rename = "totalspace")]
|
||||||
pub total_space: u64,
|
pub total_space: u64,
|
||||||
|
#[serde(rename = "usedspace")]
|
||||||
pub used_space: u64,
|
pub used_space: u64,
|
||||||
|
#[serde(rename = "availspace")]
|
||||||
pub available_space: u64,
|
pub available_space: u64,
|
||||||
|
#[serde(rename = "readthroughput")]
|
||||||
pub read_throughput: f64,
|
pub read_throughput: f64,
|
||||||
|
#[serde(rename = "writethroughput")]
|
||||||
pub write_throughput: f64,
|
pub write_throughput: f64,
|
||||||
|
#[serde(rename = "readlatency")]
|
||||||
pub read_latency: f64,
|
pub read_latency: f64,
|
||||||
|
#[serde(rename = "writelatency")]
|
||||||
pub write_latency: f64,
|
pub write_latency: f64,
|
||||||
pub utilization: f64,
|
pub utilization: f64,
|
||||||
pub metrics: Option<DiskMetrics>,
|
pub metrics: Option<DiskMetrics>,
|
||||||
|
|||||||
Reference in New Issue
Block a user