pub struct MetricDimensions { /* private fields */ }Expand description
A complete set of typed dimensions accepted by the metric catalog.
Implementations§
Source§impl MetricDimensions
impl MetricDimensions
Sourcepub const fn with_event(self, value: TelemetryEventKind) -> Self
pub const fn with_event(self, value: TelemetryEventKind) -> Self
Adds one bounded event-name dimension.
Sourcepub const fn with_status(self, value: BatchStatus) -> Self
pub const fn with_status(self, value: BatchStatus) -> Self
Adds one lifecycle-status dimension.
Sourcepub const fn with_action(self, value: OperatorAction) -> Self
pub const fn with_action(self, value: OperatorAction) -> Self
Adds one operator-action dimension.
Adds one authorization-class dimension.
Sourcepub const fn with_outcome(self, value: OperatorOutcomeClass) -> Self
pub const fn with_outcome(self, value: OperatorOutcomeClass) -> Self
Adds one operator-outcome dimension.
Sourcepub fn with_job_name(self, value: JobName) -> Self
pub fn with_job_name(self, value: JobName) -> Self
Adds a validated job name, subject to the configured allowlist.
Sourcepub fn with_step_name(self, value: StepName) -> Self
pub fn with_step_name(self, value: StepName) -> Self
Adds a validated step name, subject to the configured allowlist.
Trait Implementations§
Source§impl Clone for MetricDimensions
impl Clone for MetricDimensions
Source§fn clone(&self) -> MetricDimensions
fn clone(&self) -> MetricDimensions
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 MetricDimensions
impl Debug for MetricDimensions
Source§impl Default for MetricDimensions
impl Default for MetricDimensions
Source§fn default() -> MetricDimensions
fn default() -> MetricDimensions
Returns the “default value” for a type. Read more
impl Eq for MetricDimensions
Source§impl PartialEq for MetricDimensions
impl PartialEq for MetricDimensions
impl StructuralPartialEq for MetricDimensions
Auto Trait Implementations§
impl Freeze for MetricDimensions
impl RefUnwindSafe for MetricDimensions
impl Send for MetricDimensions
impl Sync for MetricDimensions
impl Unpin for MetricDimensions
impl UnsafeUnpin for MetricDimensions
impl UnwindSafe for MetricDimensions
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,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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