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
This commit is contained in:
Marcel Anacker
2018-02-27 15:48:36 +01:00
committed by Torkel Ödegaard
parent dff2c14aed
commit 69006a7764
+2
View File
@@ -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{}{