pub struct AlgorithmMetricObservation {
pub algorithm: String,
pub name: &'static str,
pub value: AlgorithmMetricValue,
pub attributes: Vec<MetricAttribute>,
}Expand description
One algorithm-defined metric emitted to OpenTelemetry and the run observer.
Fields§
§algorithm: StringAlgorithm that emitted the metric.
name: &'static strStable OpenTelemetry metric name. One name must always use the same value kind.
value: AlgorithmMetricValueCounter delta or histogram sample.
attributes: Vec<MetricAttribute>Bounded dimensions for grouping the metric.
Trait Implementations§
Source§impl Clone for AlgorithmMetricObservation
impl Clone for AlgorithmMetricObservation
Source§fn clone(&self) -> AlgorithmMetricObservation
fn clone(&self) -> AlgorithmMetricObservation
Returns a duplicate of the value. Read more
1.0.0 · 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 AlgorithmMetricObservation
impl Debug for AlgorithmMetricObservation
impl StructuralPartialEq for AlgorithmMetricObservation
Auto Trait Implementations§
impl Freeze for AlgorithmMetricObservation
impl RefUnwindSafe for AlgorithmMetricObservation
impl Send for AlgorithmMetricObservation
impl Sync for AlgorithmMetricObservation
impl Unpin for AlgorithmMetricObservation
impl UnsafeUnpin for AlgorithmMetricObservation
impl UnwindSafe for AlgorithmMetricObservation
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