pub struct Snapshot {Show 14 fields
pub timestamp_ms: u64,
pub host: HostInfo,
pub cpu: CpuStats,
pub memory: MemoryStats,
pub gpus: Vec<GpuStats>,
pub sensors: Vec<SensorChip>,
pub power: PowerStats,
pub disks: Vec<DiskIo>,
pub filesystems: Vec<FilesystemUsage>,
pub raid: RaidStats,
pub smart: Vec<SmartDevice>,
pub networks: Vec<NetworkStats>,
pub processes: Vec<ProcessInfo>,
pub process_count: usize,
}Expand description
One full measurement of a host.
Fields§
§timestamp_ms: u64Wall-clock time of the measurement, in milliseconds since the Unix epoch.
host: HostInfoStatic-ish information about the host.
cpu: CpuStatsCPU load, frequency and temperature.
memory: MemoryStatsPhysical memory and swap.
gpus: Vec<GpuStats>Discrete and integrated GPUs that could be queried.
sensors: Vec<SensorChip>Raw hardware sensor chips (temperatures and fans), grouped by chip.
power: PowerStatsPower draw summary.
disks: Vec<DiskIo>I/O activity per physical block device.
filesystems: Vec<FilesystemUsage>Capacity of mounted filesystems.
raid: RaidStatsSoftware RAID state (btrfs and mdadm).
smart: Vec<SmartDevice>SMART health per drive, from files written by a privileged timer.
networks: Vec<NetworkStats>Network interface traffic.
processes: Vec<ProcessInfo>Process list. May be truncated by the source (see Snapshot::truncate_processes).
process_count: usizeTotal number of processes on the host, even if processes was truncated.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Snapshot
impl<'de> Deserialize<'de> for Snapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more