podman_rest_client/v5/models/
schema2_health_config.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// Schema2HealthConfig is a HealthConfig, which holds configuration settings
4/// for the HEALTHCHECK feature, from docker/docker/api/types/container.
5pub struct Schema2HealthConfig {
6    #[serde(rename = "Interval")]
7    pub interval: Option<i64>,
8    /// Retries is the number of consecutive failures needed to consider a container as unhealthy.
9    /// Zero means inherit.
10    #[serde(rename = "Retries")]
11    pub retries: Option<i64>,
12    #[serde(rename = "StartInterval")]
13    pub start_interval: Option<i64>,
14    #[serde(rename = "StartPeriod")]
15    pub start_period: Option<i64>,
16    /// Test is the test to perform to check that the container is healthy.
17    /// An empty slice means to inherit the default.
18    /// The options are:
19    /// {} : inherit healthcheck
20    /// {"NONE"} : disable healthcheck
21    /// {"CMD", args...} : exec arguments directly
22    /// {"CMD-SHELL", command} : run command with system's default shell
23    #[serde(rename = "Test")]
24    pub test: Option<Vec<String>>,
25    #[serde(rename = "Timeout")]
26    pub timeout: Option<i64>,
27}