pub struct AlertsCfg {
pub enabled: bool,
pub webhook_url: String,
pub budget_consumed_threshold: f64,
pub timeout_ms: u64,
}Expand description
Outbound alerting ([alerts]). When enabled with a webhook_url, EdgeGuard POSTs a
Slack-compatible alert ({ "text": … }) when a hard-budget’s consumed ratio (used/limit)
crosses budget_consumed_threshold — cost-regression alerting entirely in your own VPC (no SaaS
alerting plane to depend on). Fire-and-forget
and edge-triggered (one alert per crossing into the alert zone, not one per request). Off by
default. A first cut on budget breaches; latency-percentile / error-rate / eval-drift rules follow.
Fields§
§enabled: boolMaster switch. Default false.
webhook_url: StringSlack incoming-webhook URL (or any endpoint accepting { "text": … }). Required when enabled.
budget_consumed_threshold: f64Fire when a budget’s consumed ratio (used/limit) reaches this (0.0–1.0+). Default 0.9.
timeout_ms: u64Per-emit timeout for the background POST, in milliseconds. Default 2000.