pub struct ContainerStats {Show 17 fields
pub avg_cpu: Option<f64>,
pub block_input: Option<i32>,
pub block_output: Option<i32>,
pub cpu: Option<f64>,
pub cpu_nano: Option<i32>,
pub cpu_system_nano: Option<i32>,
pub container_id: Option<String>,
pub duration: Option<i32>,
pub mem_limit: Option<i32>,
pub mem_perc: Option<f64>,
pub mem_usage: Option<i32>,
pub name: Option<String>,
pub network: Option<HashMap<String, ContainerNetworkStats>>,
pub pids: Option<i32>,
pub per_cpu: Option<Vec<i32>>,
pub system_nano: Option<i32>,
pub up_time: Option<i64>,
}
Expand description
ContainerStats : ContainerStats contains the statistics information for a running container
Fields§
§avg_cpu: Option<f64>
§block_input: Option<i32>
§block_output: Option<i32>
§cpu: Option<f64>
§cpu_nano: Option<i32>
§cpu_system_nano: Option<i32>
§container_id: Option<String>
§duration: Option<i32>
§mem_limit: Option<i32>
§mem_perc: Option<f64>
§mem_usage: Option<i32>
§name: Option<String>
§network: Option<HashMap<String, ContainerNetworkStats>>
Map of interface name to network statistics for that interface.
pids: Option<i32>
§per_cpu: Option<Vec<i32>>
§system_nano: Option<i32>
§up_time: Option<i64>
A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.
Implementations§
Source§impl ContainerStats
impl ContainerStats
Sourcepub fn new() -> ContainerStats
pub fn new() -> ContainerStats
ContainerStats contains the statistics information for a running container
Trait Implementations§
Source§impl Clone for ContainerStats
impl Clone for ContainerStats
Source§fn clone(&self) -> ContainerStats
fn clone(&self) -> ContainerStats
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 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
Source§impl PartialEq for ContainerStats
impl PartialEq for ContainerStats
Source§impl Serialize for ContainerStats
impl Serialize for ContainerStats
impl StructuralPartialEq for ContainerStats
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