pub struct RtMetricsPayload {
pub stats: Option<UpstreamStats>,
pub info: Option<UpstreamSystemInfo>,
}Expand description
Live rt_metrics SSE payload emitted by Beszel hub (~1 Hz).
Fields§
§stats: Option<UpstreamStats>§info: Option<UpstreamSystemInfo>Implementations§
Source§impl RtMetricsPayload
impl RtMetricsPayload
Sourcepub fn to_live_sample(&self, timestamp_ms: i64) -> Option<LiveSample>
pub fn to_live_sample(&self, timestamp_ms: i64) -> Option<LiveSample>
Extract a normalized live CPU/memory sample stamped with timestamp_ms.
Trait Implementations§
Source§impl Clone for RtMetricsPayload
impl Clone for RtMetricsPayload
Source§impl Debug for RtMetricsPayload
impl Debug for RtMetricsPayload
Source§impl<'de> Deserialize<'de> for RtMetricsPayload
impl<'de> Deserialize<'de> for RtMetricsPayload
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 RtMetricsPayload
impl Freeze for RtMetricsPayload
impl Move for RtMetricsPayload
impl RefUnwindSafe for RtMetricsPayload
impl Send for RtMetricsPayload
impl Sync for RtMetricsPayload
impl Unpin for RtMetricsPayload
impl UnsafeUnpin for RtMetricsPayload
impl UnwindSafe for RtMetricsPayload
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