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,
}
#[async_trait]
pub trait Notifier: Send + Sync {
fn channel_name(&self) -> &'static str;
async fn send(&self, event: &AlertEvent) -> Result<()>;
}