podman_rest_client/v5/models/
healthcheck_config.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// HealthcheckConfig holds configuration settings for the HEALTHCHECK feature.
4pub struct HealthcheckConfig {
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    /// Test is the test to perform to check that the container is healthy.
16    /// An empty slice means to inherit the default.
17    /// The options are:
18    /// {} : inherit healthcheck
19    /// {"NONE"} : disable healthcheck
20    /// {"CMD", args...} : exec arguments directly
21    /// {"CMD-SHELL", command} : run command with system's default shell
22    #[serde(rename = "Test")]
23    pub test: Option<Vec<String>>,
24    #[serde(rename = "Timeout")]
25    pub timeout: Option<i64>,
26}