pub struct ContainerStats {Show 17 fields
    pub avg_cpu: Option<f64>,
    pub block_input: Option<u64>,
    pub block_output: Option<u64>,
    pub cpu: Option<f64>,
    pub cpu_nano: Option<u64>,
    pub cpu_system_nano: Option<u64>,
    pub container_id: Option<String>,
    pub duration: Option<u64>,
    pub mem_limit: Option<u64>,
    pub mem_perc: Option<f64>,
    pub mem_usage: Option<u64>,
    pub name: Option<String>,
    pub network: Option<HashMap<String, ContainerNetworkStats>>,
    pub pi_ds: Option<u64>,
    pub per_cpu: Option<Vec<u64>>,
    pub system_nano: Option<u64>,
    pub up_time: Option<i64>,
}Available on crate feature 
v5 only.Expand description
ContainerStats contains the statistics information for a running container
Fields§
§avg_cpu: Option<f64>§block_input: Option<u64>§block_output: Option<u64>§cpu: Option<f64>§cpu_nano: Option<u64>§cpu_system_nano: Option<u64>§container_id: Option<String>§duration: Option<u64>§mem_limit: Option<u64>§mem_perc: Option<f64>§mem_usage: Option<u64>§name: Option<String>§network: Option<HashMap<String, ContainerNetworkStats>>Map of interface name to network statistics for that interface.
pi_ds: Option<u64>§per_cpu: Option<Vec<u64>>§system_nano: Option<u64>§up_time: Option<i64>Trait Implementations§
Source§impl Debug for ContainerStats
 
impl Debug for ContainerStats
Source§impl Default for ContainerStats
 
impl Default for ContainerStats
Source§fn default() -> ContainerStats
 
fn default() -> ContainerStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContainerStats
 
impl<'de> Deserialize<'de> for ContainerStats
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 ContainerStats
impl RefUnwindSafe for ContainerStats
impl Send for ContainerStats
impl Sync for ContainerStats
impl Unpin for ContainerStats
impl UnwindSafe for ContainerStats
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