pub struct SystemMetric {
pub timestamp: OffsetDateTime,
pub target_id: i64,
pub target: Target,
pub name: SystemMetricName,
pub value: f32,
pub error: MetricError,
}Expand description
Represents a single metric event produced by a target at a concrete point in time.
Fields§
§timestamp: OffsetDateTimeUnix timestamp when the metric was created.
target_id: i64Unique identifier of the target that produced this metric.
target: TargetName of the target that produced this metric.
name: SystemMetricNameThe name of metric being reported.
value: f32Numeric value of the metric.
error: MetricErrorType of error associated with this metric.
Trait Implementations§
Source§impl Debug for SystemMetric
impl Debug for SystemMetric
Source§impl From<&Measurement> for SystemMetric
impl From<&Measurement> for SystemMetric
Source§fn from(measurement: &Measurement) -> Self
fn from(measurement: &Measurement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SystemMetric
impl RefUnwindSafe for SystemMetric
impl Send for SystemMetric
impl Sync for SystemMetric
impl Unpin for SystemMetric
impl UnsafeUnpin for SystemMetric
impl UnwindSafe for SystemMetric
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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