Struct bosun_emitter::Datum
source · pub struct Datum<'a> {
pub metric: &'a str,
pub timestamp: i64,
pub value: &'a str,
pub tags: &'a Tags,
}
Expand description
Represents a metric datum.
Fields
metric: &'a str
Metric name
timestamp: i64
Unix timestamp in either s or ms
value: &'a str
Value as string representation
Tags for this metric datum
Implementations
sourceimpl<'a> Datum<'a>
impl<'a> Datum<'a>
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Datum<'a>
impl<'a> Send for Datum<'a>
impl<'a> Sync for Datum<'a>
impl<'a> Unpin for Datum<'a>
impl<'a> UnwindSafe for Datum<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more