From 40cbb4b1d4f0eb3bd101bd537e9bd5740b99e879 Mon Sep 17 00:00:00 2001 From: Liam Jones Date: Fri, 1 Nov 2024 07:59:29 +0800 Subject: [PATCH] fix(alerting): Add missing support for default-alert on teams-workflows (#883) Fix default-alert on teams-workflows --- alerting/alert/type.go | 3 +++ config/config.go | 1 + 2 files changed, 4 insertions(+) diff --git a/alerting/alert/type.go b/alerting/alert/type.go index ed282527..029590d2 100644 --- a/alerting/alert/type.go +++ b/alerting/alert/type.go @@ -62,6 +62,9 @@ const ( // TypeTeams is the Type for the teams alerting provider TypeTeams Type = "teams" + // TypeTeamsWorkflows is the Type for the teams-workflows alerting provider + TypeTeamsWorkflows Type = "teams-workflows" + // TypeTelegram is the Type for the telegram alerting provider TypeTelegram Type = "telegram" diff --git a/config/config.go b/config/config.go index 8aa61feb..19fb2ab1 100644 --- a/config/config.go +++ b/config/config.go @@ -413,6 +413,7 @@ func validateAlertingConfig(alertingConfig *alerting.Config, endpoints []*endpoi alert.TypePushover, alert.TypeSlack, alert.TypeTeams, + alert.TypeTeamsWorkflows, alert.TypeTelegram, alert.TypeTwilio, alert.TypeZulip,