mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-11 15:46:53 +00:00
f87b2bee95
Signed-off-by: mujunxiang <1948535941@qq.com>
17 lines
453 B
Rust
17 lines
453 B
Rust
use std::collections::HashMap;
|
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
use crate::metrics::TimedAction;
|
|
|
|
#[derive(Clone, Debug, Default, Serialize, Deserialize, PartialEq, Eq)]
|
|
pub struct DiskMetrics {
|
|
pub last_minute: HashMap<String, TimedAction>,
|
|
pub api_calls: HashMap<String, u64>,
|
|
pub total_waiting: u32,
|
|
pub total_errors_availability: u64,
|
|
pub total_errors_timeout: u64,
|
|
pub total_writes: u64,
|
|
pub total_deletes: u64,
|
|
}
|