pub struct AlertChannelConfig {
pub channel_type: String,
pub url: Option<String>,
pub webhook_url: Option<String>,
pub routing_key: Option<String>,
pub min_severity: String,
pub min_security_score: u8,
}Expand description
Configuration for a single alert channel.
Fields§
§channel_type: StringChannel type: "webhook", "slack", "pagerduty", or "email".
url: Option<String>Webhook / Slack incoming-webhook URL.
webhook_url: Option<String>Alias accepted for url (convenience for webhook channels).
routing_key: Option<String>PagerDuty Events API v2 routing key.
min_severity: StringMinimum severity to send to this channel (default: "High").
min_security_score: u8Minimum confidence-based score (0–100) to send to this channel.
Implementations§
Source§impl AlertChannelConfig
impl AlertChannelConfig
Sourcepub fn effective_url(&self) -> Option<&str>
pub fn effective_url(&self) -> Option<&str>
Resolve the effective URL (prefers url, falls back to webhook_url).
Trait Implementations§
Source§impl Clone for AlertChannelConfig
impl Clone for AlertChannelConfig
Source§fn clone(&self) -> AlertChannelConfig
fn clone(&self) -> AlertChannelConfig
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 AlertChannelConfig
impl Debug for AlertChannelConfig
Source§impl<'de> Deserialize<'de> for AlertChannelConfig
impl<'de> Deserialize<'de> for AlertChannelConfig
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 AlertChannelConfig
impl RefUnwindSafe for AlertChannelConfig
impl Send for AlertChannelConfig
impl Sync for AlertChannelConfig
impl Unpin for AlertChannelConfig
impl UnsafeUnpin for AlertChannelConfig
impl UnwindSafe for AlertChannelConfig
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