pub struct BackendMetricDescriptor {
pub metric: BackendMetric,
pub name: &'static str,
pub unit: BackendMetricUnit,
pub kind: BackendMetricKind,
pub labels: &'static [BackendMetricLabel],
pub buckets: &'static [u64],
pub update_point: BackendMetricUpdatePoint,
pub max_series: usize,
}Expand description
One backend metric’s immutable registration metadata.
Fields§
§metric: BackendMetricStable identity used by the owning snapshot projection. Exporters iterate descriptors and never infer a metric from its display name.
name: &'static strStable metric registration name used by exporters.
unit: BackendMetricUnitExport unit, including the conversion target for duration samples.
kind: BackendMetricKindStorage and exporter aggregation semantics.
labels: &'static [BackendMetricLabel]Closed label dimensions in the order used by projected sample attributes.
buckets: &'static [u64]Internal histogram boundary values. Duration bounds remain exact
nanoseconds until project_backend_duration_histogram converts them
to this descriptor’s declared export unit.
update_point: BackendMetricUpdatePointRuntime lifecycle transition that records this metric.
max_series: usizeMaximum accepted series count across the closed label domains.
Trait Implementations§
Source§impl Clone for BackendMetricDescriptor
impl Clone for BackendMetricDescriptor
impl Copy for BackendMetricDescriptor
Source§impl Debug for BackendMetricDescriptor
impl Debug for BackendMetricDescriptor
impl Eq for BackendMetricDescriptor
Source§impl PartialEq for BackendMetricDescriptor
impl PartialEq for BackendMetricDescriptor
impl StructuralPartialEq for BackendMetricDescriptor
Auto Trait Implementations§
impl Freeze for BackendMetricDescriptor
impl RefUnwindSafe for BackendMetricDescriptor
impl Send for BackendMetricDescriptor
impl Sync for BackendMetricDescriptor
impl Unpin for BackendMetricDescriptor
impl UnsafeUnpin for BackendMetricDescriptor
impl UnwindSafe for BackendMetricDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.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> ⓘ
Converts
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> ⓘ
Converts
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