pub struct AlertConfig {
pub enabled: bool,
pub webhook_url: String,
pub min_severity: String,
pub min_security_score: u8,
pub cooldown_seconds: u64,
pub channels: Vec<AlertChannelConfig>,
pub escalation: Option<AlertEscalationConfig>,
}Expand description
Alert engine configuration for webhook notifications.
Supports both a legacy single-webhook mode (via webhook_url) and a
multi-channel mode (via channels). When channels is non-empty it
takes precedence; otherwise the legacy webhook_url is wrapped in a
single WebhookChannelConfig for backward compatibility.
Fields§
§enabled: boolEnable the alert engine.
webhook_url: StringLegacy — Webhook URL to POST alert payloads to.
Ignored when channels is non-empty.
min_severity: StringLegacy — Minimum severity level (e.g. "High").
Used as the global default when channels is empty.
min_security_score: u8Legacy — Minimum confidence-based score (0–100).
cooldown_seconds: u64Cooldown in seconds between repeated alerts for the same finding type.
channels: Vec<AlertChannelConfig>Multi-channel alert destinations. When non-empty, each channel has its own type, URL, and min_severity.
escalation: Option<AlertEscalationConfig>Optional escalation configuration.
Trait Implementations§
Source§impl Clone for AlertConfig
impl Clone for AlertConfig
Source§fn clone(&self) -> AlertConfig
fn clone(&self) -> AlertConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more