Преглед изворни кода

Merge pull request #9573 from cjchand/master

When Messasge field is set for an alert, map it to the output field i…
Carl Bergquist пре 8 година
родитељ
комит
43f039859a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      pkg/services/alerting/notifiers/sensu.go

+ 1 - 1
pkg/services/alerting/notifiers/sensu.go

@@ -112,7 +112,7 @@ func (this *SensuNotifier) Notify(evalContext *alerting.EvalContext) error {
 	}
 
 	if evalContext.Rule.Message != "" {
-		bodyJSON.Set("message", evalContext.Rule.Message)
+		bodyJSON.Set("output", evalContext.Rule.Message)
 	}
 
 	body, _ := bodyJSON.MarshalJSON()