pub struct AlertSink {
pub sink_type: String,
pub name: Option<String>,
pub webhook_url: Option<String>,
pub message_template: Option<String>,
pub severities: Vec<String>,
pub url: Option<String>,
pub headers: BTreeMap<String, String>,
pub method: String,
pub retry_enabled: bool,
pub retry_max_attempts: u32,
}Expand description
Configuration for an alert sink.
Fields§
§sink_type: StringSink type: slack, webhook, email, etc.
name: Option<String>Optional name for this sink.
webhook_url: Option<String>Optional Slack webhook URL.
message_template: Option<String>Optional custom message template.
severities: Vec<String>Optional severity filter.
url: Option<String>Generic webhook URL.
headers: BTreeMap<String, String>Custom headers for webhook.
method: StringHTTP method: post, put.
retry_enabled: boolEnable webhook retry.
retry_max_attempts: u32Max retry attempts for webhook.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AlertSink
impl<'de> Deserialize<'de> for AlertSink
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 AlertSink
impl RefUnwindSafe for AlertSink
impl Send for AlertSink
impl Sync for AlertSink
impl Unpin for AlertSink
impl UnsafeUnpin for AlertSink
impl UnwindSafe for AlertSink
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