Struct pagerduty_rs::types::AlertTriggerPayload
source · [−]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
Auto Trait Implementations
impl<T> RefUnwindSafe for AlertTriggerPayload<T> where
T: RefUnwindSafe,
impl<T> Send for AlertTriggerPayload<T> where
T: Send,
impl<T> Sync for AlertTriggerPayload<T> where
T: Sync,
impl<T> Unpin for AlertTriggerPayload<T> where
T: Unpin,
impl<T> UnwindSafe for AlertTriggerPayload<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more