pub struct ContainerStatsResponse {
pub id: String,
pub cpu_usage_usec: u64,
pub memory_bytes: u64,
pub memory_limit: u64,
pub memory_percent: f64,
}Expand description
Container resource statistics
Fields§
§id: StringContainer identifier
cpu_usage_usec: u64CPU usage in microseconds
memory_bytes: u64Current memory usage in bytes
memory_limit: u64Memory limit in bytes (u64::MAX if unlimited)
memory_percent: f64Memory usage as percentage of limit
Trait Implementations§
Source§impl ComposeSchema for ContainerStatsResponse
impl ComposeSchema for ContainerStatsResponse
Source§impl Debug for ContainerStatsResponse
impl Debug for ContainerStatsResponse
Source§impl<'de> Deserialize<'de> for ContainerStatsResponse
impl<'de> Deserialize<'de> for ContainerStatsResponse
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 Serialize for ContainerStatsResponse
impl Serialize for ContainerStatsResponse
Auto Trait Implementations§
impl Freeze for ContainerStatsResponse
impl RefUnwindSafe for ContainerStatsResponse
impl Send for ContainerStatsResponse
impl Sync for ContainerStatsResponse
impl Unpin for ContainerStatsResponse
impl UnsafeUnpin for ContainerStatsResponse
impl UnwindSafe for ContainerStatsResponse
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