Struct libeko::Message
[−]
[src]
pub struct Message { /* fields omitted */ }
The Echo Event Format items.
Methods
impl Message
[src]
pub fn set_level(&mut self, val: Type) -> &mut Self
[src]
The message type. Additional types may be added in the future.
pub fn set_timestamp(&mut self, val: i64) -> &mut Self
[src]
The timestamp of the event.
If producing your own messages, the format of the date should be either of:
- An ISO-8601 date/time string (e.g. 2018-04-06T17:23:00-04:00)
- A number representing milliseconds since epoch (e.g. 1491514054000). Note many timestamps are seconds since the epoch. That is incorrect for this usage.
pub fn set_correlation_id(&mut self, val: Option<Uuid>) -> &mut Self
[src]
The UUID that should be used to correlate message that are part of the same request or processing event. This can be used to correlate events across applications.
pub fn set_start_timestamp(&mut self, val: Option<i64>) -> &mut Self
[src]
Sets the start time (timestamp of millis since the epoch) for the time at which this event started.
pub fn set_end_timestamp(&mut self, val: Option<i64>) -> &mut Self
[src]
Sets the start time (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_response_code(&mut self, val: Option<u16>) -> &mut Self
[src]
The HTTP response code returned by a performance event.
pub fn set_payload_size(&mut self, val: Option<u64>) -> &mut Self
[src]
The size of a request payload, typically associated with performance events.
impl Message
[src]
pub fn set_routing_key<S>(&mut self, routing_key: S) -> &mut Self where
S: Into<String>,
[src]
S: Into<String>,
Set the routing key.
pub fn set_message<S>(&mut self, message: S) -> &mut Self where
S: Into<String>,
[src]
S: Into<String>,
Set the message.
pub fn set_host<S>(&mut self, host: Option<S>) -> &mut Self where
S: Into<String>,
[src]
S: Into<String>,
Set the host.
pub fn set_message_detail<S>(
&mut self,
message_detail: Option<HashMap<S, S>>
) -> &mut Self where
S: Into<String> + Clone + Eq + Hash,
[src]
&mut self,
message_detail: Option<HashMap<S, S>>
) -> &mut Self where
S: Into<String> + Clone + Eq + Hash,
Set the message detail KV map.
pub fn set_application_version<S>(
&mut self,
application_version: Option<S>
) -> &mut Self where
S: Into<String>,
[src]
&mut self,
application_version: Option<S>
) -> &mut Self where
S: Into<String>,
Set the application version.
pub fn set_client_hostname<S>(
&mut self,
client_hostname: Option<S>
) -> &mut Self where
S: Into<String>,
[src]
&mut self,
client_hostname: Option<S>
) -> &mut Self where
S: Into<String>,
Set the client hostname.
pub fn set_destination_hostname<S>(
&mut self,
destination_hostname: Option<S>
) -> &mut Self where
S: Into<String>,
[src]
&mut self,
destination_hostname: Option<S>
) -> &mut Self where
S: Into<String>,
Set the destination hostname.
pub fn set_destination_path<S>(
&mut self,
destination_path: Option<S>
) -> &mut Self where
S: Into<String>,
[src]
&mut self,
destination_path: Option<S>
) -> &mut Self where
S: Into<String>,
Set the destination path.
pub fn set_response<S>(&mut self, response: Option<S>) -> &mut Self where
S: Into<String>,
[src]
S: Into<String>,
Set the response.