1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use serde::{Deserialize, Serialize};
use crate::models::device_group_stats::DeviceGroupStats;
use crate::models::host_cpu_stats::HostCpuStats;
use crate::models::host_disk_stats::HostDiskStats;
use crate::models::host_memory_stats::HostMemoryStats;
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
#[serde(rename_all = "PascalCase")]
pub struct HostStats {
pub memory: Option<HostMemoryStats>,
#[serde(rename = "CPU")]
pub cpu: Option<Vec<HostCpuStats>>,
pub disk_stats: Option<Vec<HostDiskStats>>,
pub device_stats: Option<Vec<DeviceGroupStats>>,
pub uptime: Option<i32>,
pub cpu_ticks_consumed: Option<f64>,
}