pub struct NotificationPayload {
pub rule_name: String,
pub severity: Severity,
pub event_json: String,
pub matched_scope: String,
}Expand description
Payload delivered to each notification channel when a rule fires.
Fields§
§rule_name: StringHuman-readable rule name from the rule definition.
severity: SeveritySeverity of the notification.
event_json: StringMatched event serialised as compact JSON for webhook bodies and push notification summaries.
matched_scope: StringScope identifier of the matched event, e.g. "service:yubaba.local".
Trait Implementations§
Source§impl Clone for NotificationPayload
impl Clone for NotificationPayload
Source§fn clone(&self) -> NotificationPayload
fn clone(&self) -> NotificationPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NotificationPayload
impl RefUnwindSafe for NotificationPayload
impl Send for NotificationPayload
impl Sync for NotificationPayload
impl Unpin for NotificationPayload
impl UnsafeUnpin for NotificationPayload
impl UnwindSafe for NotificationPayload
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more