Struct rustmann::EventBuilder
source · pub struct EventBuilder { /* private fields */ }
Expand description
Riemann event data builder
Implementations§
source§impl EventBuilder
impl EventBuilder
pub fn new() -> Self
pub fn time(self, time: i64) -> Self
pub fn state<S: Into<String>>(self, state: S) -> Self
pub fn service<S: Into<String>>(self, service: S) -> Self
pub fn host<S: Into<String>>(self, host: S) -> Self
pub fn description<S: Into<String>>(self, description: S) -> Self
pub fn add_tag<S: Into<String>>(self, tag: S) -> Self
pub fn ttl(self, ttl: f32) -> Self
pub fn time_micros(self, time_micros: i64) -> Self
pub fn metric_sint64(self, metric_sint64: i64) -> Self
pub fn metric_d(self, metric_d: f64) -> Self
pub fn metric_f(self, metric_f: f32) -> Self
pub fn add_attribute<S: Into<String>>(self, key: S, value: Option<S>) -> Self
pub fn build(self) -> Event
Trait Implementations§
source§impl Default for EventBuilder
impl Default for EventBuilder
source§fn default() -> EventBuilder
fn default() -> EventBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for EventBuilder
impl Send for EventBuilder
impl Sync for EventBuilder
impl Unpin for EventBuilder
impl UnwindSafe for EventBuilder
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