Struct bollard::models::Health [−][src]
pub struct Health {
pub status: Option<HealthStatusEnum>,
pub failing_streak: Option<i64>,
pub log: Option<Vec<HealthcheckResult, Global>>,
}
Expand description
Health stores information about the container’s healthcheck results.
Fields
status: Option<HealthStatusEnum>
Status is one of none
, starting
, healthy
or unhealthy
- "none" Indicates there is no healthcheck - "starting" Starting indicates that the container is not yet ready - "healthy" Healthy indicates that the container is running correctly - "unhealthy" Unhealthy indicates that the container has a problem
failing_streak: Option<i64>
FailingStreak is the number of consecutive failures
log: Option<Vec<HealthcheckResult, Global>>
Log contains the last few results (oldest first)
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Health, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Health, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Health
impl UnwindSafe for Health
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more