nomad_client_rs/models/
allocation_metric.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct AllocationMetric {
5    #[serde(rename = "AllocationTime", skip_serializing_if = "Option::is_none")]
6    pub allocation_time: Option<i64>,
7    #[serde(rename = "ClassExhausted", skip_serializing_if = "Option::is_none")]
8    pub class_exhausted: Option<::std::collections::HashMap<String, i32>>,
9    #[serde(rename = "ClassFiltered", skip_serializing_if = "Option::is_none")]
10    pub class_filtered: Option<::std::collections::HashMap<String, i32>>,
11    #[serde(rename = "CoalescedFailures", skip_serializing_if = "Option::is_none")]
12    pub coalesced_failures: Option<i32>,
13    #[serde(rename = "ConstraintFiltered", skip_serializing_if = "Option::is_none")]
14    pub constraint_filtered: Option<::std::collections::HashMap<String, i32>>,
15    #[serde(rename = "DimensionExhausted", skip_serializing_if = "Option::is_none")]
16    pub dimension_exhausted: Option<::std::collections::HashMap<String, i32>>,
17    #[serde(rename = "NodesAvailable", skip_serializing_if = "Option::is_none")]
18    pub nodes_available: Option<::std::collections::HashMap<String, i32>>,
19    #[serde(rename = "NodesEvaluated", skip_serializing_if = "Option::is_none")]
20    pub nodes_evaluated: Option<i32>,
21    #[serde(rename = "NodesExhausted", skip_serializing_if = "Option::is_none")]
22    pub nodes_exhausted: Option<i32>,
23    #[serde(rename = "NodesFiltered", skip_serializing_if = "Option::is_none")]
24    pub nodes_filtered: Option<i32>,
25    #[serde(rename = "QuotaExhausted", skip_serializing_if = "Option::is_none")]
26    pub quota_exhausted: Option<Vec<String>>,
27    #[serde(rename = "ResourcesExhausted", skip_serializing_if = "Option::is_none")]
28    pub resources_exhausted: Option<::std::collections::HashMap<String, crate::models::Resources>>,
29    #[serde(rename = "ScoreMetaData", skip_serializing_if = "Option::is_none")]
30    pub score_meta_data: Option<Vec<crate::models::NodeScoreMeta>>,
31    #[serde(rename = "Scores", skip_serializing_if = "Option::is_none")]
32    pub scores: Option<::std::collections::HashMap<String, f64>>,
33}