Struct libeko::Message [] [src]

pub struct Message { /* fields omitted */ }

The Echo Event Format items.

Methods

impl Message
[src]

[src]

The routing_key is what identifies the message with an application. It will become the ElasticSearch index. Valid characters are lowercase alpha numeric and '-'. The key should follow the format --.

[src]

The message type. Additional types may be added in the future.

[src]

A simple string message. Most messages should be one line of information. If you have secondary, deeper information to store, put it in the message_detail.

[src]

Hostname where the message originated.

[src]

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

[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.

[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.

[src]

Sets the version of the application that is creating this message.

[src]

The hostname of a client if this message is involving an external system calling into your system.

[src]

The hostname of a destination system if this message is involving your system calling an external system.

[src]

The path being called on a destination system if this message is involving your system calling an external system.

[src]

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

[src]

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

[src]

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

[src]

The HTTP response code returned by a performance event.

[src]

The size of a request payload, typically associated with performance events.

[src]

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

Trait Implementations

impl Default for Message
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Message

impl Sync for Message