pub struct HealthConfig {
pub test: Option<Vec<String>>,
pub interval_nanoseconds: Option<i64>,
pub timeout_nanoseconds: Option<i64>,
pub start_period_nanoseconds: Option<i64>,
pub retries: Option<i32>,
}
Expand description
HealthConfig holds configuration settings for the HEALTHCHECK feature.
Fields§
§test: Option<Vec<String>>
Test is the test to perform to check that the container is healthy. An empty slice means to inherit the default. The options are: {} : inherit healthcheck. {“NONE”} : disable healthcheck. {“CMD”, args…} : exec arguments directly. {“CMD-SHELL”, command} : run command with system’s default shell.
interval_nanoseconds: Option<i64>
Zero means to inherit. Durations are expressed as integer nanoseconds. interval_nanoseconds is the time to wait between checks.
timeout_nanoseconds: Option<i64>
Timeout is the time to wait before considering the check to have hung.
start_period_nanoseconds: Option<i64>
The start period for the container to initialize before the retries starts to count down.
retries: Option<i32>
Retries is the number of consecutive failures needed to consider a container as unhealthy. Zero means inherit.
Trait Implementations§
Source§impl Clone for HealthConfig
impl Clone for HealthConfig
Source§fn clone(&self) -> HealthConfig
fn clone(&self) -> HealthConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more