pub struct Healthcheck {
pub test: Vec<String>,
pub interval: Option<String>,
pub timeout: Option<String>,
pub retries: Option<u32>,
pub start_period: Option<String>,
pub start_interval: Option<String>,
pub disable: bool,
}Expand description
docker compose’s healthcheck:. Durations are strings (30s, 1m30s).
Fields§
§test: Vec<String>[CMD, argv...], [CMD-SHELL, "a shell line"], a plain string (a shell
line), or [NONE]. Runs in the guest as the service’s user.
interval: Option<String>Time between checks. Default 30s.
timeout: Option<String>One check’s deadline. Default 30s.
retries: Option<u32>Consecutive failures before unhealthy. Default 3.
start_period: Option<String>Grace after a start during which failures do not count. Default 0s.
start_interval: Option<String>Time between checks during start_period. Default 5s.
disable: boolTurn off a healthcheck set in another file.
Implementations§
Source§impl Healthcheck
impl Healthcheck
Trait Implementations§
Source§impl Clone for Healthcheck
impl Clone for Healthcheck
Source§impl Debug for Healthcheck
impl Debug for Healthcheck
Source§impl Default for Healthcheck
impl Default 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
Source§impl JsonSchema for Healthcheck
impl JsonSchema for Healthcheck
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &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
Source§impl Serialize for Healthcheck
impl Serialize 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