Struct docker_api::models::Health
source · pub struct Health {
pub failing_streak: Option<isize>,
pub log: Option<Vec<HealthcheckResult, Global>>,
pub status: Option<String>,
}
Expand description
Health stores information about the container’s healthcheck results.
Fields§
§failing_streak: Option<isize>
FailingStreak is the number of consecutive failures
log: Option<Vec<HealthcheckResult, Global>>
Log contains the last few results (oldest first)
status: Option<String>
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
Trait Implementations§
source§impl<'de> Deserialize<'de> for Health
impl<'de> Deserialize<'de> for Health
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Health, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
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
source§impl PartialEq<Health> for Health
impl PartialEq<Health> for Health
source§impl Serialize for Health
impl Serialize for Health
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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