pub struct HostStats {
pub memory: Option<HostMemoryStats>,
pub cpu: Vec<HostCpuStats>,
pub disk_stats: Vec<HostDiskStats>,
pub alloc_dir_stats: Option<HostDiskStats>,
pub device_stats: Vec<DeviceGroupStats>,
pub uptime: u64,
pub cpu_ticks_consumed: f64,
}
Expand description
HostStats represents resource usage stats of the host running a Nomad client
This struct was generated based on the Go types of the official Nomad API.
Fields§
§memory: Option<HostMemoryStats>
§cpu: Vec<HostCpuStats>
§disk_stats: Vec<HostDiskStats>
§alloc_dir_stats: Option<HostDiskStats>
§device_stats: Vec<DeviceGroupStats>
§uptime: u64
§cpu_ticks_consumed: f64
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HostStats
impl<'de> Deserialize<'de> for HostStats
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
impl StructuralPartialEq for HostStats
Auto Trait Implementations§
impl Freeze for HostStats
impl RefUnwindSafe for HostStats
impl Send for HostStats
impl Sync for HostStats
impl Unpin for HostStats
impl UnwindSafe for HostStats
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