pub struct ReportSource {
pub up: bool,
pub dropped_metrics: u64,
pub colliding_metrics: u64,
pub metrics: BTreeMap<String, Value>,
}Expand description
Metrics from one report source.
Fields§
§up: boolWhether the source answered io.systemd.Metrics.List this run
dropped_metrics: u64Metrics the source returned but that were dropped: names not prefixed with the source name, invalid names, or past the per-source cap
colliding_metrics: u64Metrics left out because one of their flat keys was already taken by an earlier metric, or repeated inside their own value. Keys are kept readable (unit names keep their dots), so two different metrics can map to the same key. The first one wins and later ones are counted here, never silently overwritten.
metrics: BTreeMap<String, Value>Metric values keyed by <field>[.<object>][.<field>_<value>...],
where the first <field> is the metric name without the source prefix
Trait Implementations§
Source§impl Clone for ReportSource
impl Clone for ReportSource
Source§fn clone(&self) -> ReportSource
fn clone(&self) -> ReportSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReportSource
impl Debug for ReportSource
Source§impl Default for ReportSource
impl Default for ReportSource
Source§fn default() -> ReportSource
fn default() -> ReportSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReportSource
impl<'de> Deserialize<'de> for ReportSource
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 ReportSource
impl PartialEq for ReportSource
Source§fn eq(&self, other: &ReportSource) -> bool
fn eq(&self, other: &ReportSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReportSource
impl Serialize for ReportSource
impl StructuralPartialEq for ReportSource
Auto Trait Implementations§
impl Freeze for ReportSource
impl RefUnwindSafe for ReportSource
impl Send for ReportSource
impl Sync for ReportSource
impl Unpin for ReportSource
impl UnsafeUnpin for ReportSource
impl UnwindSafe for ReportSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.