pub struct ContainerHealthInfo {
pub status: String,
pub failing_streak: Option<u32>,
pub last_output: Option<String>,
}Expand description
Runtime-native health snapshot on ContainerInfo::health.
Sourced from bollard’s ContainerState.health for Docker-backed
containers. The internal HealthMonitor in
crates/zlayer-agent/src/health.rs drives service-level health events
against user-configured health specs; for standalone containers the API
reports the runtime-native status instead so images with a baked-in
HEALTHCHECK still surface correctly.
Fields§
§status: StringOne of "none", "starting", "healthy", "unhealthy" (Docker
HealthStatusEnum). Empty / missing upstream values normalise to
"none".
failing_streak: Option<u32>Consecutive failing probe count, when the runtime tracks it.
last_output: Option<String>Output from the most recent failing probe, when available.
Trait Implementations§
Source§impl Clone for ContainerHealthInfo
impl Clone for ContainerHealthInfo
Source§fn clone(&self) -> ContainerHealthInfo
fn clone(&self) -> ContainerHealthInfo
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 ComposeSchema for ContainerHealthInfo
impl ComposeSchema for ContainerHealthInfo
Source§impl Debug for ContainerHealthInfo
impl Debug for ContainerHealthInfo
Source§impl<'de> Deserialize<'de> for ContainerHealthInfo
impl<'de> Deserialize<'de> for ContainerHealthInfo
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 ContainerHealthInfo
impl Serialize for ContainerHealthInfo
Auto Trait Implementations§
impl Freeze for ContainerHealthInfo
impl RefUnwindSafe for ContainerHealthInfo
impl Send for ContainerHealthInfo
impl Sync for ContainerHealthInfo
impl Unpin for ContainerHealthInfo
impl UnsafeUnpin for ContainerHealthInfo
impl UnwindSafe for ContainerHealthInfo
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