podman_rest_client/v5/models/
startup_health_check.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// StartupHealthCheck is the configuration of a startup healthcheck.
4pub struct StartupHealthCheck {
5    #[serde(rename = "Interval")]
6    pub interval: Option<i64>,
7    /// Retries is the number of consecutive failures needed to consider a container as unhealthy.
8    /// Zero means inherit.
9    #[serde(rename = "Retries")]
10    pub retries: Option<i64>,
11    #[serde(rename = "StartInterval")]
12    pub start_interval: Option<i64>,
13    #[serde(rename = "StartPeriod")]
14    pub start_period: Option<i64>,
15    /// Successes are the number of successes required to mark the startup HC
16    /// as passed.
17    /// If set to 0, a single success will mark the HC as passed.
18    #[serde(rename = "Successes")]
19    pub successes: Option<i64>,
20    /// Test is the test to perform to check that the container is healthy.
21    /// An empty slice means to inherit the default.
22    /// The options are:
23    /// {} : inherit healthcheck
24    /// {"NONE"} : disable healthcheck
25    /// {"CMD", args...} : exec arguments directly
26    /// {"CMD-SHELL", command} : run command with system's default shell
27    #[serde(rename = "Test")]
28    pub test: Option<Vec<String>>,
29    #[serde(rename = "Timeout")]
30    pub timeout: Option<i64>,
31}