pub struct AllocationMetric {Show 15 fields
pub score_meta_data: Vec<NodeScoreMeta>,
pub nodes_exhausted: i64,
pub dimension_exhausted: HashMap<String, i64>,
pub scores: HashMap<String, f64>,
pub allocation_time: TimeDelta,
pub coalesced_failures: i64,
pub nodes_evaluated: i64,
pub nodes_available: HashMap<String, i64>,
pub class_filtered: HashMap<String, i64>,
pub constraint_filtered: HashMap<String, i64>,
pub nodes_filtered: i64,
pub class_exhausted: HashMap<String, i64>,
pub quota_exhausted: Vec<String>,
pub nodes_in_pool: i64,
pub resources_exhausted: HashMap<String, Resources>,
}
Expand description
AllocationMetric is used to deserialize allocation metrics.
This struct was generated based on the Go types of the official Nomad API.
Fields§
§score_meta_data: Vec<NodeScoreMeta>
§nodes_exhausted: i64
§dimension_exhausted: HashMap<String, i64>
§scores: HashMap<String, f64>
Deprecated, replaced with ScoreMetaData
allocation_time: TimeDelta
§coalesced_failures: i64
§nodes_evaluated: i64
§nodes_available: HashMap<String, i64>
§class_filtered: HashMap<String, i64>
§constraint_filtered: HashMap<String, i64>
§nodes_filtered: i64
§class_exhausted: HashMap<String, i64>
§quota_exhausted: Vec<String>
§nodes_in_pool: i64
§resources_exhausted: HashMap<String, Resources>
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 Default for AllocationMetric
impl Default for AllocationMetric
Source§fn default() -> AllocationMetric
fn default() -> AllocationMetric
Returns the “default value” for a type. Read more
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