pub struct LiveSample {
pub timestamp_ms: i64,
pub cpu_pct: f64,
pub cpu_cores: Option<Vec<u8>>,
pub mem_pct: f64,
pub mem_used_bytes: Option<u64>,
pub mem_total_bytes: Option<u64>,
pub mem_buff_cache_bytes: Option<u64>,
pub swap_used_bytes: Option<u64>,
pub swap_total_bytes: Option<u64>,
}Expand description
Single live (~1 Hz) CPU and memory sample stamped locally by beszel-relay.
Fields§
§timestamp_ms: i64Local wall-clock receipt timestamp in milliseconds since Unix epoch.
cpu_pct: f64Total CPU utilization percent (0.0..=100.0).
cpu_cores: Option<Vec<u8>>Per-core CPU utilization percentages (0..=100), when reported by the agent.
mem_pct: f64Memory utilization percent (0.0..=100.0).
mem_used_bytes: Option<u64>§mem_total_bytes: Option<u64>§mem_buff_cache_bytes: Option<u64>§swap_used_bytes: Option<u64>§swap_total_bytes: Option<u64>Trait Implementations§
Source§impl Clone for LiveSample
impl Clone for LiveSample
Source§impl Debug for LiveSample
impl Debug for LiveSample
Source§impl<'de> Deserialize<'de> for LiveSample
impl<'de> Deserialize<'de> for LiveSample
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
Source§impl PartialEq for LiveSample
impl PartialEq for LiveSample
Source§impl Serialize for LiveSample
impl Serialize for LiveSample
impl StructuralPartialEq for LiveSample
Auto Trait Implementations§
impl Forget for LiveSample
impl Freeze for LiveSample
impl Move for LiveSample
impl RefUnwindSafe for LiveSample
impl Send for LiveSample
impl Sync for LiveSample
impl Unpin for LiveSample
impl UnsafeUnpin for LiveSample
impl UnwindSafe for LiveSample
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