diff --git a/harmony/src/modules/monitoring/discord_webhook_sender.rs b/harmony/src/modules/monitoring/discord_webhook_sender.rs index 7501e87..70d6084 100644 --- a/harmony/src/modules/monitoring/discord_webhook_sender.rs +++ b/harmony/src/modules/monitoring/discord_webhook_sender.rs @@ -130,50 +130,15 @@ struct DiscordWebhookReceiverScore { impl Score for DiscordWebhookReceiverScore { fn create_interpret(&self) -> Box> { - Box::new(DiscordWebhookReceiverScoreInterpret { - config: self.config.clone(), - }) - } - - fn name(&self) -> String { - "DiscordWebhookReceiverScore".to_string() - } -} -#[derive(Debug)] -struct DiscordWebhookReceiverScoreInterpret { - config: DiscordWebhookConfig, -} - -#[async_trait] -impl Interpret for DiscordWebhookReceiverScoreInterpret { - async fn execute( - &self, - inventory: &Inventory, - topology: &T, - ) -> Result { discord_alert_manager_score( self.config.webhook_url.clone(), self.config.name.clone(), self.config.name.clone(), ) .create_interpret() - .execute(inventory, topology) - .await } - fn get_name(&self) -> InterpretName { - todo!() - } - - fn get_version(&self) -> Version { - todo!() - } - - fn get_status(&self) -> InterpretStatus { - todo!() - } - - fn get_children(&self) -> Vec { - todo!() + fn name(&self) -> String { + "DiscordWebhookReceiverScore".to_string() } }