pub struct Healthcheck {
pub probe: HealthProbe,
pub interval: Option<String>,
pub timeout: Option<String>,
pub retries: Option<u32>,
pub start_period: Option<String>,
}Expand description
When a machine counts as healthy, besides its ports answering: a command that succeeds, or a page that answers, tried at its own pace.
Fields§
§probe: HealthProbeWhat it tries.
interval: Option<String>The time between two tries (5s, 1m30s). Default: 5s.
timeout: Option<String>How long one try may take. Default: 3s.
retries: Option<u32>Failed tries in a row before the machine counts as unhealthy. Default: 60.
start_period: Option<String>A grace period after start before the first try counts (30s). Default: 10s.
Trait Implementations§
Source§impl Clone for Healthcheck
impl Clone for Healthcheck
Source§impl Debug for Healthcheck
impl Debug for Healthcheck
Source§impl<'de> Deserialize<'de> for Healthcheck
impl<'de> Deserialize<'de> for Healthcheck
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
impl Eq for Healthcheck
Source§impl JsonSchema for Healthcheck
impl JsonSchema for Healthcheck
Source§fn json_schema(g: &mut SchemaGenerator) -> Schema
fn json_schema(g: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for Healthcheck
impl PartialEq for Healthcheck
impl StructuralPartialEq for Healthcheck
Auto Trait Implementations§
impl Freeze for Healthcheck
impl RefUnwindSafe for Healthcheck
impl Send for Healthcheck
impl Sync for Healthcheck
impl Unpin for Healthcheck
impl UnsafeUnpin for Healthcheck
impl UnwindSafe for Healthcheck
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.