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§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 Forget for HostMetrics
impl Freeze for HostMetrics
impl Move for HostMetrics
impl RefUnwindSafe for HostMetrics
impl Send for HostMetricswhere
RawVecInner: Send,
impl Sync for HostMetricswhere
RawVecInner: Sync,
impl Unpin for HostMetrics
impl UnsafeUnpin for HostMetricswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ServiceMetrics>: UnsafeUnpin,
impl UnwindSafe for HostMetricswhere
RawVecInner: UnwindSafe,
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