pub struct AlertRule {
pub rule_id: String,
pub name: String,
pub description: String,
pub event_types: Vec<SecurityEventType>,
pub min_severity: SecuritySeverity,
pub threshold: AlertThreshold,
pub time_window: Duration,
pub cooldown: Duration,
pub enabled: bool,
pub actions: Vec<AlertAction>,
}
Expand description
Security alert configuration
Fields§
§rule_id: String
Unique alert rule identifier
name: String
Alert rule name
description: String
Alert description
event_types: Vec<SecurityEventType>
Event types to monitor
min_severity: SecuritySeverity
Minimum severity level
threshold: AlertThreshold
Threshold for triggering alert
time_window: Duration
Time window for threshold evaluation
cooldown: Duration
Alert cooldown period
enabled: bool
Whether this rule is enabled
actions: Vec<AlertAction>
Alert actions to take
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AlertRule
impl<'de> Deserialize<'de> for AlertRule
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 AlertRule
impl RefUnwindSafe for AlertRule
impl Send for AlertRule
impl Sync for AlertRule
impl Unpin for AlertRule
impl UnwindSafe for AlertRule
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