pub struct SeriesRow {Show 15 fields
pub name: String,
pub key: String,
pub origin: String,
pub producer: String,
pub class: String,
pub subject: String,
pub labels: BTreeMap<String, String>,
pub field: Option<String>,
pub kind: Option<String>,
pub unit: Option<String>,
pub value: Option<f64>,
pub last_seen_unix_s: u64,
pub state: SeriesState,
pub samples: u64,
pub drop_exposed: u64,
}Expand description
One exported series: a contract-derived identity, its last value, and the state that says whether the value is current.
Fields§
§name: StringThe metric name the exposition uses — derived from the registry’s
producer, pattern, unit and kind, never from the leaf’s spelling.
key: StringThe concrete wire key this series was last fed from.
origin: String§producer: String§class: String§subject: StringThe declared pattern, e.g. disk/{mount}/used.
labels: BTreeMap<String, String>The {var} bindings by their declared names.
field: Option<String>The top-level field this series reads, when the payload was an object carrying several numerics rather than one leaf value.
kind: Option<String>The declared kind token, when the registry declares one.
unit: Option<String>The declared unit, verbatim, when the registry declares one.
value: Option<f64>The newest value seen. Absent when the state says the series stopped — a stopped series exposes its state and its labels, never a stale number that reads as current.
last_seen_unix_s: u64When the newest sample arrived, unix seconds on the observer’s clock — captured at ingest, so it does not move between scrapes.
state: SeriesState§samples: u64Samples folded into this series since the observer started.
drop_exposed: u64Folds during which this series was fed and the observer dropped samples — the interval where its value may not be the newest.
Trait Implementations§
impl StructuralPartialEq for SeriesRow
Auto Trait Implementations§
impl Freeze for SeriesRow
impl RefUnwindSafe for SeriesRow
impl Send for SeriesRow
impl Sync for SeriesRow
impl Unpin for SeriesRow
impl UnsafeUnpin for SeriesRow
impl UnwindSafe for SeriesRow
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more