pub struct DeviceStats {
pub uptime_secs: Option<u64>,
pub cpu_utilization_pct: Option<f64>,
pub memory_utilization_pct: Option<f64>,
pub load_average_1m: Option<f64>,
pub load_average_5m: Option<f64>,
pub load_average_15m: Option<f64>,
pub uplink_bandwidth: Option<Bandwidth>,
pub last_heartbeat: Option<DateTime<Utc>>,
pub next_heartbeat: Option<DateTime<Utc>>,
}Expand description
Real-time device statistics.
Fields§
§uptime_secs: Option<u64>§cpu_utilization_pct: Option<f64>§memory_utilization_pct: Option<f64>§load_average_1m: Option<f64>§load_average_5m: Option<f64>§load_average_15m: Option<f64>§uplink_bandwidth: Option<Bandwidth>§last_heartbeat: Option<DateTime<Utc>>§next_heartbeat: Option<DateTime<Utc>>Trait Implementations§
Source§impl Clone for DeviceStats
impl Clone for DeviceStats
Source§fn clone(&self) -> DeviceStats
fn clone(&self) -> DeviceStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceStats
impl Debug for DeviceStats
Source§impl Default for DeviceStats
impl Default for DeviceStats
Source§fn default() -> DeviceStats
fn default() -> DeviceStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceStats
impl<'de> Deserialize<'de> for DeviceStats
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 DeviceStats
impl RefUnwindSafe for DeviceStats
impl Send for DeviceStats
impl Sync for DeviceStats
impl Unpin for DeviceStats
impl UnsafeUnpin for DeviceStats
impl UnwindSafe for DeviceStats
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