pub struct HostMetrics {
pub host_id: String,
pub sampled_at_ms: i64,
pub cpu_usage_percent: Option<f64>,
pub memory_available_bytes: Option<u64>,
pub disk_available_bytes: Option<u64>,
pub network_received_bytes_per_second: Option<f64>,
pub network_sent_bytes_per_second: Option<f64>,
pub services: Vec<ServiceMetrics>,
}Fields§
§host_id: String§sampled_at_ms: i64§cpu_usage_percent: Option<f64>§memory_available_bytes: Option<u64>§disk_available_bytes: Option<u64>§network_received_bytes_per_second: Option<f64>§network_sent_bytes_per_second: Option<f64>§services: Vec<ServiceMetrics>Trait Implementations§
Source§impl Clone for HostMetrics
impl Clone for HostMetrics
Source§fn clone(&self) -> HostMetrics
fn clone(&self) -> HostMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HostMetrics
impl Debug for HostMetrics
Source§impl<'de> Deserialize<'de> for HostMetrics
impl<'de> Deserialize<'de> for HostMetrics
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 HostMetrics
impl PartialEq for HostMetrics
Source§impl Serialize for HostMetrics
impl Serialize for HostMetrics
impl StructuralPartialEq for HostMetrics
Auto Trait Implementations§
impl Freeze for HostMetrics
impl RefUnwindSafe for HostMetrics
impl Send for HostMetrics
impl Sync for HostMetrics
impl Unpin for HostMetrics
impl UnsafeUnpin for HostMetrics
impl UnwindSafe for HostMetrics
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