pub struct ZHealthcheck {
pub cmd: ZCommand,
pub interval: Option<String>,
pub timeout: Option<String>,
pub start_period: Option<String>,
pub retries: Option<u32>,
}Expand description
Healthcheck configuration for the container.
§YAML Example
healthcheck:
cmd: "curl -f http://localhost:8080/health || exit 1"
interval: "30s"
timeout: "10s"
start_period: "5s"
retries: 3Fields§
§cmd: ZCommandCommand to run for the health check
interval: Option<String>Interval between health checks (e.g. “30s”, “1m”)
timeout: Option<String>Timeout for each health check (e.g. “10s”)
start_period: Option<String>Grace period before first check (e.g. “5s”)
retries: Option<u32>Number of consecutive failures before unhealthy
Trait Implementations§
Source§impl Clone for ZHealthcheck
impl Clone for ZHealthcheck
Source§fn clone(&self) -> ZHealthcheck
fn clone(&self) -> ZHealthcheck
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ZHealthcheck
impl Debug for ZHealthcheck
Source§impl<'de> Deserialize<'de> for ZHealthcheck
impl<'de> Deserialize<'de> for ZHealthcheck
Source§fn 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
Auto Trait Implementations§
impl Freeze for ZHealthcheck
impl RefUnwindSafe for ZHealthcheck
impl Send for ZHealthcheck
impl Sync for ZHealthcheck
impl Unpin for ZHealthcheck
impl UnsafeUnpin for ZHealthcheck
impl UnwindSafe for ZHealthcheck
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more