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
sourceimpl Clone for ContainerServiceHealthCheckConfig
impl Clone for ContainerServiceHealthCheckConfig
sourcefn clone(&self) -> ContainerServiceHealthCheckConfig
fn clone(&self) -> ContainerServiceHealthCheckConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for ContainerServiceHealthCheckConfig
impl Default for ContainerServiceHealthCheckConfig
sourcefn default() -> ContainerServiceHealthCheckConfig
fn default() -> ContainerServiceHealthCheckConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ContainerServiceHealthCheckConfig
impl<'de> Deserialize<'de> for ContainerServiceHealthCheckConfig
sourcefn 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
sourceimpl PartialEq<ContainerServiceHealthCheckConfig> for ContainerServiceHealthCheckConfig
impl PartialEq<ContainerServiceHealthCheckConfig> for ContainerServiceHealthCheckConfig
sourcefn eq(&self, other: &ContainerServiceHealthCheckConfig) -> bool
fn eq(&self, other: &ContainerServiceHealthCheckConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ContainerServiceHealthCheckConfig) -> bool
fn ne(&self, other: &ContainerServiceHealthCheckConfig) -> bool
This method tests for !=
.
impl StructuralPartialEq for ContainerServiceHealthCheckConfig
Auto Trait Implementations
impl RefUnwindSafe for ContainerServiceHealthCheckConfig
impl Send for ContainerServiceHealthCheckConfig
impl Sync for ContainerServiceHealthCheckConfig
impl Unpin for ContainerServiceHealthCheckConfig
impl UnwindSafe for ContainerServiceHealthCheckConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more