[][src]Struct rustmann::EventBuilder

pub struct EventBuilder { /* fields omitted */ }

Riemann event data builder

Implementations

impl EventBuilder[src]

pub fn new() -> Self[src]

pub fn time(self, time: i64) -> Self[src]

pub fn state<S: Into<String>>(self, state: S) -> Self[src]

pub fn service<S: Into<String>>(self, service: S) -> Self[src]

pub fn host<S: Into<String>>(self, host: S) -> Self[src]

pub fn description<S: Into<String>>(self, description: S) -> Self[src]

pub fn add_tag<S: Into<String>>(self, tag: S) -> Self[src]

pub fn ttl(self, ttl: f32) -> Self[src]

pub fn time_micros(self, time_micros: i64) -> Self[src]

pub fn metric_sint64(self, metric_sint64: i64) -> Self[src]

pub fn metric_d(self, metric_d: f64) -> Self[src]

pub fn metric_f(self, metric_f: f32) -> Self[src]

pub fn add_attribute<S: Into<String>>(self, key: S, value: Option<S>) -> Self[src]

pub fn build(self) -> Event[src]

Trait Implementations

impl Default for EventBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.