[][src]Struct echoloc::Event

pub struct Event { /* fields omitted */ }

An Echo Event

Methods

impl Event[src]

pub fn set_event_type(&mut self, val: EventType) -> &mut Self[src]

Echo Event Type

pub fn set_correlation_id(&mut self, val: Option<Uuid>) -> &mut Self[src]

The correlation id

pub fn set_timestamp(&mut self, val: Option<i64>) -> &mut Self[src]

The timestamp of the event. If unset, it will be set by the EchoClient.

If producing your own messages, the format of the date should be either of:

  • An ISO-8601 date/time string (e.g. 2017-04-06T17:23:00-04:00)
  • A number representing milliseconds since epoch (e.g. 1491514054000)

pub fn set_message_detail(
    &mut self,
    val: Option<HashMap<String, String>>
) -> &mut Self
[src]

A place to store custom key/value pairs in the message, typically used when there isn't an appropriate root-level field.

pub fn set_start_timestamp(&mut self, val: Option<u64>) -> &mut Self[src]

Sets the timestamp of millis since the epoch for the time at which this event started.

pub fn set_finish_timestamp(&mut self, val: Option<u64>) -> &mut Self[src]

Sets the timestamp of millis since the epoch for the time at which this event finished.

pub fn set_duration(&mut self, val: Option<u64>) -> &mut Self[src]

Sets the duration (time in milliseconds) that passed during this event.

pub fn set_duration_in_ms(&mut self, val: Option<u64>) -> &mut Self[src]

Sets the duration (time in milliseconds) that passed during this event.

pub fn set_response_code(&mut self, val: Option<u16>) -> &mut Self[src]

The HTTP response code returned by a performance event.

pub fn set_response(&mut self, val: Option<Response>) -> &mut Self[src]

A more generic response used when a HTTP response code doesn't make sense. Typical values might be "success" or "failure".

impl Event[src]

pub fn set_routing_key<T>(&mut self, routing_key: T) -> &mut Self where
    T: Into<String>, 
[src]

Set the routing key field

pub fn set_message<T>(&mut self, message: T) -> &mut Self where
    T: Into<String>, 
[src]

Set the message field

pub fn set_host<T>(&mut self, host: Option<T>) -> &mut Self where
    T: Into<String>, 
[src]

Set the host field

pub fn set_application_version<T>(
    &mut self,
    application_version: Option<T>
) -> &mut Self where
    T: Into<String>, 
[src]

Set the application version field

pub fn set_data_center<T>(&mut self, data_center: Option<T>) -> &mut Self where
    T: Into<String>, 
[src]

Set the datacenter field

pub fn set_client_host_name<T>(
    &mut self,
    client_host_name: Option<T>
) -> &mut Self where
    T: Into<String>, 
[src]

Set the client host name

pub fn set_destination_host_name<T>(
    &mut self,
    destination_host_name: Option<T>
) -> &mut Self where
    T: Into<String>, 
[src]

Set the destination host name

pub fn set_destination_path<T>(
    &mut self,
    destination_path: Option<T>
) -> &mut Self where
    T: Into<String>, 
[src]

Set the destination path

Trait Implementations

impl PartialEq<Event> for Event[src]

impl Default for Event[src]

impl Clone for Event[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Event[src]

impl Serialize for Event[src]

Auto Trait Implementations

impl Send for Event

impl Unpin for Event

impl Sync for Event

impl UnwindSafe for Event

impl RefUnwindSafe for Event

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]