pub struct MetricDetailStatus {
pub configured: i32,
pub effective: i32,
pub previous_effective: i32,
pub workers: BTreeMap<String, WorkerMetricDetailStatus>,
}Expand description
Aggregated SetMetricDetail outcome across the fleet. Returned by the
master to the requesting client (no WorkerResponses indirection needed
because the schema is symmetric per-worker).
Fields§
§configured: i32The master’s own configured view (mirrors a worker’s view since the
master also runs the metrics aggregator).
effective: i32Master’s effective level AFTER the verb.
previous_effective: i32Master’s effective level BEFORE the verb.
workers: BTreeMap<String, WorkerMetricDetailStatus>Per-worker status. Map keyed by worker_id (string form for parity
with WorkerResponses).
Implementations§
Source§impl MetricDetailStatus
impl MetricDetailStatus
Sourcepub fn configured(&self) -> MetricDetail
pub fn configured(&self) -> MetricDetail
Returns the enum value of configured, or the default if the field is set to an invalid enum value.
Sourcepub fn set_configured(&mut self, value: MetricDetail)
pub fn set_configured(&mut self, value: MetricDetail)
Sets configured to the provided enum value.
Sourcepub fn effective(&self) -> MetricDetail
pub fn effective(&self) -> MetricDetail
Returns the enum value of effective, or the default if the field is set to an invalid enum value.
Sourcepub fn set_effective(&mut self, value: MetricDetail)
pub fn set_effective(&mut self, value: MetricDetail)
Sets effective to the provided enum value.
Sourcepub fn previous_effective(&self) -> MetricDetail
pub fn previous_effective(&self) -> MetricDetail
Returns the enum value of previous_effective, or the default if the field is set to an invalid enum value.
Sourcepub fn set_previous_effective(&mut self, value: MetricDetail)
pub fn set_previous_effective(&mut self, value: MetricDetail)
Sets previous_effective to the provided enum value.
Trait Implementations§
Source§impl Clone for MetricDetailStatus
impl Clone for MetricDetailStatus
Source§fn clone(&self) -> MetricDetailStatus
fn clone(&self) -> MetricDetailStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MetricDetailStatus
impl Debug for MetricDetailStatus
Source§impl Default for MetricDetailStatus
impl Default for MetricDetailStatus
Source§impl<'de> Deserialize<'de> for MetricDetailStatus
impl<'de> Deserialize<'de> for MetricDetailStatus
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>,
Source§impl Hash for MetricDetailStatus
impl Hash for MetricDetailStatus
Source§impl Message for MetricDetailStatus
impl Message for MetricDetailStatus
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl Ord for MetricDetailStatus
impl Ord for MetricDetailStatus
Source§fn cmp(&self, other: &MetricDetailStatus) -> Ordering
fn cmp(&self, other: &MetricDetailStatus) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for MetricDetailStatus
impl PartialEq for MetricDetailStatus
Source§fn eq(&self, other: &MetricDetailStatus) -> bool
fn eq(&self, other: &MetricDetailStatus) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MetricDetailStatus
impl PartialOrd for MetricDetailStatus
Source§impl Serialize for MetricDetailStatus
impl Serialize for MetricDetailStatus
impl Eq for MetricDetailStatus
impl StructuralPartialEq for MetricDetailStatus
Auto Trait Implementations§
impl Freeze for MetricDetailStatus
impl RefUnwindSafe for MetricDetailStatus
impl Send for MetricDetailStatus
impl Sync for MetricDetailStatus
impl Unpin for MetricDetailStatus
impl UnsafeUnpin for MetricDetailStatus
impl UnwindSafe for MetricDetailStatus
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.