pub struct AlertTriggerPayload<T: Serialize> {
    pub severity: Severity,
    pub summary: String,
    pub source: String,
    pub timestamp: Option<OffsetDateTime>,
    pub component: Option<String>,
    pub group: Option<String>,
    pub class: Option<String>,
    pub custom_details: Option<T>,
}

Fields

severity: Severity

The perceived severity of the status the event is describing with respect to the affected system. This can be critical, error, warning or info.

summary: String

A brief text summary of the event, used to generate the summaries/titles of any associated alerts. The maximum permitted length of this property is 1024 characters.

source: String

The unique location of the affected system, preferably a hostname or FQDN.

timestamp: Option<OffsetDateTime>

The time at which the emitting tool detected or generated the event.

component: Option<String>

Component of the source machine that is responsible for the event, for example mysql or eth0

group: Option<String>

Logical grouping of components of a service, for example app-stack

class: Option<String>

The class/type of the event, for example ping failure or cpu load

custom_details: Option<T>

Additional details about the event and affected system

Trait Implementations

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more