tembo_api_client/models/probes.rs
1/*
2 * Tembo Cloud
3 *
4 * Platform API for Tembo Cloud </br> </br> To find a Tembo Data API, please find it here: </br> </br> [AWS US East 1](https://api.data-1.use1.tembo.io/swagger-ui/)
5 *
6 * The version of the OpenAPI document: v1.0.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Probes : Probes are used to determine the health of a container. You define this in the same manner as you would for all Kubernetes containers. See the [Kubernetes docs](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/).
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Probes {
17 #[serde(rename = "liveness")]
18 pub liveness: Box<models::Probe>,
19 #[serde(rename = "readiness")]
20 pub readiness: Box<models::Probe>,
21}
22
23impl Probes {
24 /// Probes are used to determine the health of a container. You define this in the same manner as you would for all Kubernetes containers. See the [Kubernetes docs](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/).
25 pub fn new(liveness: models::Probe, readiness: models::Probe) -> Probes {
26 Probes {
27 liveness: Box::new(liveness),
28 readiness: Box::new(readiness),
29 }
30 }
31}