Struct kitsune_p2p::event::MetricDatum [−][src]
pub struct MetricDatum {
pub agent: Arc<KitsuneAgent>,
pub kind: MetricKind,
pub timestamp: SystemTime,
}
Expand description
A single row in the metrics database
Fields
agent: Arc<KitsuneAgent>
The agent this event is about
kind: MetricKind
The kind of event
timestamp: SystemTime
The time at which this occurred
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
The ordering is defined as such to facilitate in-memory metric store implementations such that the earliest and latest metrics can be easily obtained.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for MetricDatum
impl Send for MetricDatum
impl Sync for MetricDatum
impl Unpin for MetricDatum
impl UnwindSafe for MetricDatum
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more