use url::Url;



#[derive(Debug, Clone)]
pub struct DiscordWebhookAlertChannel {
    pub webhook_url: Url,
    pub name: String,
    pub send_resolved_notifications: bool,
}

//impl AlertChannelConfig for DiscordWebhookAlertChannel {
//    fn build_alert_channel(&self) -> Box<dyn AlertChannel> {
//        Box::new(DiscordWebhookAlertChannel {
//            webhook_url: self.webhook_url.clone(),
//            name: self.name.clone(),
//            send_resolved_notifications: self.send_resolved_notifications.clone(),
//        })
//    }
//    fn channel_type(&self) -> String {
//        "discord".to_string()
//    }
//}
//
//#[async_trait]
//impl AlertChannel for DiscordWebhookAlertChannel {
//    async fn get_channel_id(&self) -> String {
//        self.name.clone()
//    }
//}
//
//impl PrometheusAlertChannel for DiscordWebhookAlertChannel {
//    fn get_alert_channel_global_settings(&self) -> Option<AlertManagerChannelGlobalConfigs> {
//        None
//    }
//
//    fn get_alert_channel_route(&self) -> AlertManagerChannelRoute {
//        todo!()
//    }
//
//    fn get_alert_channel_receiver(&self) -> AlertManagerChannelReceiver {
//        todo!()
//    }
//}
