nomad_client_rs/models/
service_check.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct ServiceCheck {
5    #[serde(rename = "AddressMode", skip_serializing_if = "Option::is_none")]
6    pub address_mode: Option<String>,
7    #[serde(rename = "Advertise", skip_serializing_if = "Option::is_none")]
8    pub advertise: Option<String>,
9    #[serde(rename = "Args", skip_serializing_if = "Option::is_none")]
10    pub args: Option<Vec<String>>,
11    #[serde(rename = "Body", skip_serializing_if = "Option::is_none")]
12    pub body: Option<String>,
13    #[serde(rename = "CheckRestart", skip_serializing_if = "Option::is_none")]
14    pub check_restart: Option<crate::models::CheckRestart>,
15    #[serde(rename = "Command", skip_serializing_if = "Option::is_none")]
16    pub command: Option<String>,
17    #[serde(rename = "Expose", skip_serializing_if = "Option::is_none")]
18    pub expose: Option<bool>,
19    #[serde(
20        rename = "FailuresBeforeCritical",
21        skip_serializing_if = "Option::is_none"
22    )]
23    pub failures_before_critical: Option<i32>,
24    #[serde(rename = "GRPCService", skip_serializing_if = "Option::is_none")]
25    pub grpc_service: Option<String>,
26    #[serde(rename = "GRPCUseTLS", skip_serializing_if = "Option::is_none")]
27    pub grpc_use_tls: Option<bool>,
28    #[serde(rename = "Header", skip_serializing_if = "Option::is_none")]
29    pub header: Option<::std::collections::HashMap<String, Vec<String>>>,
30    #[serde(rename = "InitialStatus", skip_serializing_if = "Option::is_none")]
31    pub initial_status: Option<String>,
32    #[serde(rename = "Interval", skip_serializing_if = "Option::is_none")]
33    pub interval: Option<i64>,
34    #[serde(rename = "Method", skip_serializing_if = "Option::is_none")]
35    pub method: Option<String>,
36    #[serde(rename = "Name", skip_serializing_if = "Option::is_none")]
37    pub name: Option<String>,
38    #[serde(rename = "OnUpdate", skip_serializing_if = "Option::is_none")]
39    pub on_update: Option<String>,
40    #[serde(rename = "Path", skip_serializing_if = "Option::is_none")]
41    pub path: Option<String>,
42    #[serde(rename = "PortLabel", skip_serializing_if = "Option::is_none")]
43    pub port_label: Option<String>,
44    #[serde(rename = "Protocol", skip_serializing_if = "Option::is_none")]
45    pub protocol: Option<String>,
46    #[serde(
47        rename = "SuccessBeforePassing",
48        skip_serializing_if = "Option::is_none"
49    )]
50    pub success_before_passing: Option<i32>,
51    #[serde(rename = "TLSSkipVerify", skip_serializing_if = "Option::is_none")]
52    pub tls_skip_verify: Option<bool>,
53    #[serde(rename = "TaskName", skip_serializing_if = "Option::is_none")]
54    pub task_name: Option<String>,
55    #[serde(rename = "Timeout", skip_serializing_if = "Option::is_none")]
56    pub timeout: Option<i64>,
57    #[serde(rename = "Type", skip_serializing_if = "Option::is_none")]
58    pub _type: Option<String>,
59}