add Microsoft Teams webhook support

This commit is contained in:
Damian Slowinski
2023-06-06 15:55:01 +02:00
parent 330e69f417
commit daccf7e050

View File

@@ -75,6 +75,7 @@ func sendSlackAlert(webhookUrl string, proxy string, msg string) []error {
return nil
}
// function to send alert to Microsoft Teams webhook
func sendTeamsAlert(webhookUrl string, proxy string, msg string) []error {
attachment := Attachment{
Text: msg,