proxy-pilot 0.7.0

Core-agnostic proxy health monitor, automatic failover daemon, and multi-channel alerting tool for Linux servers.
Documentation
pub mod bale;

use async_trait::async_trait;

use crate::error::Result;

#[derive(Debug, Clone)]
pub enum AlertSeverity {
    Info,
    Warning,
    Critical,
}

#[derive(Debug, Clone)]
pub struct AlertEvent {
    pub severity: AlertSeverity,
    pub title: String,
    pub message: String,
}

/// Abstraction over notification channels (Bale, SMS, Email, Heartbeat, Webhook).
#[async_trait]
pub trait Notifier: Send + Sync {
    fn channel_name(&self) -> &'static str;
    async fn send(&self, event: &AlertEvent) -> Result<()>;
}