nomad_client_rs/models/
autopilot_configuration.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct AutopilotConfiguration {
5 #[serde(rename = "CleanupDeadServers", skip_serializing_if = "Option::is_none")]
6 pub cleanup_dead_servers: Option<bool>,
7 #[serde(rename = "CreateIndex", skip_serializing_if = "Option::is_none")]
8 pub create_index: Option<i32>,
9 #[serde(
10 rename = "DisableUpgradeMigration",
11 skip_serializing_if = "Option::is_none"
12 )]
13 pub disable_upgrade_migration: Option<bool>,
14 #[serde(
15 rename = "EnableCustomUpgrades",
16 skip_serializing_if = "Option::is_none"
17 )]
18 pub enable_custom_upgrades: Option<bool>,
19 #[serde(
20 rename = "EnableRedundancyZones",
21 skip_serializing_if = "Option::is_none"
22 )]
23 pub enable_redundancy_zones: Option<bool>,
24 #[serde(
25 rename = "LastContactThreshold",
26 skip_serializing_if = "Option::is_none"
27 )]
28 pub last_contact_threshold: Option<String>,
29 #[serde(rename = "MaxTrailingLogs", skip_serializing_if = "Option::is_none")]
30 pub max_trailing_logs: Option<i32>,
31 #[serde(rename = "MinQuorum", skip_serializing_if = "Option::is_none")]
32 pub min_quorum: Option<i32>,
33 #[serde(rename = "ModifyIndex", skip_serializing_if = "Option::is_none")]
34 pub modify_index: Option<i32>,
35 #[serde(
36 rename = "ServerStabilizationTime",
37 skip_serializing_if = "Option::is_none"
38 )]
39 pub server_stabilization_time: Option<String>,
40}