pub struct HostSample {Show 21 fields
pub hostname: String,
pub cpus: u32,
pub cpu_pct: Option<f32>,
pub cpu_history: Vec<f32>,
pub mem_used: u64,
pub mem_total: u64,
pub disk_used: u64,
pub disk_total: u64,
pub load1: f32,
pub load5: Option<f32>,
pub load15: Option<f32>,
pub cpu_cores: Vec<f32>,
pub uptime_secs: Option<u64>,
pub swap_used: Option<u64>,
pub swap_total: Option<u64>,
pub pools: Vec<PoolSample>,
pub disk_read_rate: Option<f64>,
pub disk_write_rate: Option<f64>,
pub net_rx_rate: Option<f64>,
pub net_tx_rate: Option<f64>,
pub interfaces: Vec<IfaceSample>,
}Fields§
§hostname: String§cpus: u32§cpu_pct: Option<f32>Busy share of all CPUs, 0-100.
cpu_history: Vec<f32>§mem_used: u64§mem_total: u64§disk_used: u64incus storage pools, used and total bytes. Pools on one filesystem
(several dir pools, say) are counted once.
disk_total: u64§load1: f32§load5: Option<f32>§load15: Option<f32>§cpu_cores: Vec<f32>Busy share of each CPU, 0-100 (Linux only).
uptime_secs: Option<u64>§swap_used: Option<u64>§swap_total: Option<u64>§pools: Vec<PoolSample>Each storage pool, with its own used and total bytes.
disk_read_rate: Option<f64>Bytes per second over the host’s whole disks (not partitions, device mapper or zvols, which would count the same bytes twice).
disk_write_rate: Option<f64>§net_rx_rate: Option<f64>Bytes per second over HostSample::interfaces.
net_tx_rate: Option<f64>§interfaces: Vec<IfaceSample>Network interfaces but loopback and instances’ own ends (veth, tap).
Trait Implementations§
Source§impl Clone for HostSample
impl Clone for HostSample
Source§impl Debug for HostSample
impl Debug for HostSample
Source§impl Default for HostSample
impl Default for HostSample
Source§impl PartialEq for HostSample
impl PartialEq for HostSample
Source§impl Serialize for HostSample
impl Serialize for HostSample
impl StructuralPartialEq for HostSample
Auto Trait Implementations§
impl Freeze for HostSample
impl RefUnwindSafe for HostSample
impl Send for HostSample
impl Sync for HostSample
impl Unpin for HostSample
impl UnsafeUnpin for HostSample
impl UnwindSafe for HostSample
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