pub struct AlertNotification {Show 13 fields
pub id: String,
pub rule_id: String,
pub rule_name: String,
pub severity: AlertSeverity,
pub status: AlertStatus,
pub message: String,
pub details: HashMap<String, Value>,
pub triggered_at: DateTime<Utc>,
pub resolved_at: Option<DateTime<Utc>>,
pub acknowledged_at: Option<DateTime<Utc>>,
pub acknowledged_by: Option<String>,
pub notification_channels: Vec<String>,
pub tags: HashMap<String, String>,
}Expand description
Alert notification
Fields§
§id: String§rule_id: String§rule_name: String§severity: AlertSeverity§status: AlertStatus§message: String§details: HashMap<String, Value>§triggered_at: DateTime<Utc>§resolved_at: Option<DateTime<Utc>>§acknowledged_at: Option<DateTime<Utc>>§acknowledged_by: Option<String>§notification_channels: Vec<String>Trait Implementations§
Source§impl Clone for AlertNotification
impl Clone for AlertNotification
Source§fn clone(&self) -> AlertNotification
fn clone(&self) -> AlertNotification
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlertNotification
impl Debug for AlertNotification
Source§impl<'de> Deserialize<'de> for AlertNotification
impl<'de> Deserialize<'de> for AlertNotification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AlertNotification
impl RefUnwindSafe for AlertNotification
impl Send for AlertNotification
impl Sync for AlertNotification
impl Unpin for AlertNotification
impl UnwindSafe for AlertNotification
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