From 69006a7764e93c4ae2192fa5346b0a7db7ce2453 Mon Sep 17 00:00:00 2001 From: Marcel Anacker Date: Tue, 27 Feb 2018 15:48:36 +0100 Subject: [PATCH] Alerting: Fix OK state doesn't show up in Microsoft Teams (#11032) * Alerting: Fix OK state doesn't show up in Microsoft Teams * Fix formatting --- pkg/services/alerting/notifiers/teams.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/services/alerting/notifiers/teams.go b/pkg/services/alerting/notifiers/teams.go index 605b2742325..851e5a01c75 100644 --- a/pkg/services/alerting/notifiers/teams.go +++ b/pkg/services/alerting/notifiers/teams.go @@ -82,6 +82,8 @@ func (this *TeamsNotifier) Notify(evalContext *alerting.EvalContext) error { message := this.Mention if evalContext.Rule.State != m.AlertStateOK { //dont add message when going back to alert state ok. message += " " + evalContext.Rule.Message + } else { + message += " " // summary must not be empty } body := map[string]interface{}{