send_webhook_alert

Function send_webhook_alert 

Source
pub async fn send_webhook_alert(webhook_url: &str, message: &str) -> Result<()>
Expand description

Send alert via webhook.

Posts a JSON payload to the specified webhook URL with the alert message.

ยงErrors

Returns an error if the HTTP request fails or returns a non-success status.