logo
pub struct ContainerServiceHealthCheckConfig {
    pub healthy_threshold: Option<i64>,
    pub interval_seconds: Option<i64>,
    pub path: Option<String>,
    pub success_codes: Option<String>,
    pub timeout_seconds: Option<i64>,
    pub unhealthy_threshold: Option<i64>,
}
Expand description

Describes the health check configuration of an Amazon Lightsail container service.

Fields

healthy_threshold: Option<i64>

The number of consecutive health checks successes required before moving the container to the Healthy state. The default value is 2.

interval_seconds: Option<i64>

The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. The default value is 5.

path: Option<String>

The path on the container on which to perform the health check. The default value is /.

success_codes: Option<String>

The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499.

timeout_seconds: Option<i64>

The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. The default value is 2.

unhealthy_threshold: Option<i64>

The number of consecutive health check failures required before moving the container to the Unhealthy state. The default value is 2.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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