nomad_client_rs/models/
evaluation.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct Evaluation {
5 #[serde(rename = "AnnotatePlan", skip_serializing_if = "Option::is_none")]
6 pub annotate_plan: Option<bool>,
7 #[serde(rename = "BlockedEval", skip_serializing_if = "Option::is_none")]
8 pub blocked_eval: Option<String>,
9 #[serde(rename = "ClassEligibility", skip_serializing_if = "Option::is_none")]
10 pub class_eligibility: Option<::std::collections::HashMap<String, bool>>,
11 #[serde(rename = "CreateIndex", skip_serializing_if = "Option::is_none")]
12 pub create_index: Option<i32>,
13 #[serde(rename = "CreateTime", skip_serializing_if = "Option::is_none")]
14 pub create_time: Option<i64>,
15 #[serde(rename = "DeploymentID", skip_serializing_if = "Option::is_none")]
16 pub deployment_id: Option<String>,
17 #[serde(
18 rename = "EscapedComputedClass",
19 skip_serializing_if = "Option::is_none"
20 )]
21 pub escaped_computed_class: Option<bool>,
22 #[serde(rename = "FailedTGAllocs", skip_serializing_if = "Option::is_none")]
23 pub failed_tg_allocs:
24 Option<::std::collections::HashMap<String, crate::models::AllocationMetric>>,
25 #[serde(rename = "ID", skip_serializing_if = "Option::is_none")]
26 pub id: Option<String>,
27 #[serde(rename = "JobID", skip_serializing_if = "Option::is_none")]
28 pub job_id: Option<String>,
29 #[serde(rename = "JobModifyIndex", skip_serializing_if = "Option::is_none")]
30 pub job_modify_index: Option<i32>,
31 #[serde(rename = "ModifyIndex", skip_serializing_if = "Option::is_none")]
32 pub modify_index: Option<i32>,
33 #[serde(rename = "ModifyTime", skip_serializing_if = "Option::is_none")]
34 pub modify_time: Option<i64>,
35 #[serde(rename = "Namespace", skip_serializing_if = "Option::is_none")]
36 pub namespace: Option<String>,
37 #[serde(rename = "NextEval", skip_serializing_if = "Option::is_none")]
38 pub next_eval: Option<String>,
39 #[serde(rename = "NodeID", skip_serializing_if = "Option::is_none")]
40 pub node_id: Option<String>,
41 #[serde(rename = "NodeModifyIndex", skip_serializing_if = "Option::is_none")]
42 pub node_modify_index: Option<i32>,
43 #[serde(rename = "PreviousEval", skip_serializing_if = "Option::is_none")]
44 pub previous_eval: Option<String>,
45 #[serde(rename = "Priority", skip_serializing_if = "Option::is_none")]
46 pub priority: Option<i32>,
47 #[serde(rename = "QueuedAllocations", skip_serializing_if = "Option::is_none")]
48 pub queued_allocations: Option<::std::collections::HashMap<String, i32>>,
49 #[serde(rename = "QuotaLimitReached", skip_serializing_if = "Option::is_none")]
50 pub quota_limit_reached: Option<String>,
51 #[serde(rename = "RelatedEvals", skip_serializing_if = "Option::is_none")]
52 pub related_evals: Option<Vec<crate::models::EvaluationStub>>,
53 #[serde(rename = "SnapshotIndex", skip_serializing_if = "Option::is_none")]
54 pub snapshot_index: Option<i32>,
55 #[serde(rename = "Status", skip_serializing_if = "Option::is_none")]
56 pub status: Option<String>,
57 #[serde(rename = "StatusDescription", skip_serializing_if = "Option::is_none")]
58 pub status_description: Option<String>,
59 #[serde(rename = "TriggeredBy", skip_serializing_if = "Option::is_none")]
60 pub triggered_by: Option<String>,
61 #[serde(rename = "Type", skip_serializing_if = "Option::is_none")]
62 pub _type: Option<String>,
63 #[serde(rename = "Wait", skip_serializing_if = "Option::is_none")]
64 pub wait: Option<i64>,
65 #[serde(rename = "WaitUntil", skip_serializing_if = "Option::is_none")]
66 pub wait_until: Option<String>,
67}