pub struct AllocationMetric {Show 15 fields
pub nodes_evaluated: i64,
pub class_exhausted: HashMap<String, i64>,
pub scores: HashMap<String, f64>,
pub coalesced_failures: i64,
pub nodes_filtered: i64,
pub constraint_filtered: HashMap<String, i64>,
pub score_meta_data: Vec<NodeScoreMeta>,
pub nodes_in_pool: i64,
pub class_filtered: HashMap<String, i64>,
pub resources_exhausted: HashMap<String, Resources>,
pub nodes_available: HashMap<String, i64>,
pub nodes_exhausted: i64,
pub dimension_exhausted: HashMap<String, i64>,
pub quota_exhausted: Vec<String>,
pub allocation_time: TimeDelta,
}
Expand description
AllocationMetric is used to deserialize allocation metrics.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§nodes_evaluated: i64
§class_exhausted: HashMap<String, i64>
§scores: HashMap<String, f64>
Deprecated, replaced with ScoreMetaData
coalesced_failures: i64
§nodes_filtered: i64
§constraint_filtered: HashMap<String, i64>
§score_meta_data: Vec<NodeScoreMeta>
§nodes_in_pool: i64
§class_filtered: HashMap<String, i64>
§resources_exhausted: HashMap<String, Resources>
§nodes_available: HashMap<String, i64>
§nodes_exhausted: i64
§dimension_exhausted: HashMap<String, i64>
§quota_exhausted: Vec<String>
§allocation_time: TimeDelta
Implementations§
Source§impl AllocationMetric
impl AllocationMetric
pub fn builder() -> AllocationMetricBuilder
Trait Implementations§
Source§impl Clone for AllocationMetric
impl Clone for AllocationMetric
Source§fn clone(&self) -> AllocationMetric
fn clone(&self) -> AllocationMetric
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AllocationMetric
impl Debug for AllocationMetric
Source§impl<'de> Deserialize<'de> for AllocationMetric
impl<'de> Deserialize<'de> for AllocationMetric
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AllocationMetric
impl PartialEq for AllocationMetric
Source§impl Serialize for AllocationMetric
impl Serialize for AllocationMetric
impl StructuralPartialEq for AllocationMetric
Auto Trait Implementations§
impl Freeze for AllocationMetric
impl RefUnwindSafe for AllocationMetric
impl Send for AllocationMetric
impl Sync for AllocationMetric
impl Unpin for AllocationMetric
impl UnwindSafe for AllocationMetric
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more