pub struct MetricDoc {
pub name: &'static str,
pub kind: MetricKind,
pub unit: &'static str,
pub summary: &'static str,
pub attributes: &'static [&'static str],
pub interpretation: &'static str,
pub round_item: &'static str,
}Expand description
One operator annotation for a catalogued instrument.
Fields§
§name: &'static strMetric name (a catalog::* constant — never a copied literal).
kind: MetricKindInstrument kind.
unit: &'static strUCUM unit string.
summary: &'static strOne operator sentence: what this instrument means in the field.
attributes: &'static [&'static str]Bounded attribute keys this metric may carry (catalog::attr::*), empty
when the metric carries none.
interpretation: &'static strHealthy value vs the shape that should raise an alarm.
round_item: &'static str#2399 round-scoreboard item this metric feeds, or "—".
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MetricDoc
impl RefUnwindSafe for MetricDoc
impl Send for MetricDoc
impl Sync for MetricDoc
impl Unpin for MetricDoc
impl UnsafeUnpin for MetricDoc
impl UnwindSafe for MetricDoc
Blanket Implementations§
impl<T> Allocation for T
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