pub struct UpstreamStats {
pub cpu: Option<f64>,
pub cpus: Option<Vec<u8>>,
pub mp: Option<f64>,
pub mem: Option<[u64; 4]>,
pub swap: Option<[u64; 2]>,
pub m: Option<f64>,
pub mu: Option<f64>,
pub mb: Option<f64>,
}Expand description
Detailed live system metrics carried in rt_metrics.stats.
Upstream Go structs use omitzero / omitempty extensively; all fields
remain optional so minor Beszel releases or zero ticks decode cleanly.
Fields§
§cpu: Option<f64>Total CPU utilization percent.
cpus: Option<Vec<u8>>Per-core busy utilization percentages ([CPU0..]).
mp: Option<f64>Memory utilization percent.
mem: Option<[u64; 4]>Byte-accurate memory [total, used, buff_cache, zfs_arc].
swap: Option<[u64; 2]>Byte-accurate swap [total, used].
m: Option<f64>Deprecated total memory in GiB (fallback when mem is absent).
mu: Option<f64>Deprecated used memory in GiB (fallback when mem is absent).
mb: Option<f64>Deprecated buffer/cache memory in GiB (fallback when mem is absent).
Trait Implementations§
Source§impl Clone for UpstreamStats
impl Clone for UpstreamStats
Source§impl Debug for UpstreamStats
impl Debug for UpstreamStats
Source§impl Default for UpstreamStats
impl Default for UpstreamStats
Source§impl<'de> Deserialize<'de> for UpstreamStats
impl<'de> Deserialize<'de> for UpstreamStats
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 Forget for UpstreamStats
impl Freeze for UpstreamStats
impl Move for UpstreamStats
impl RefUnwindSafe for UpstreamStats
impl Send for UpstreamStats
impl Sync for UpstreamStats
impl Unpin for UpstreamStats
impl UnsafeUnpin for UpstreamStats
impl UnwindSafe for UpstreamStats
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