Merge pull request #9573 from cjchand/master

When Messasge field is set for an alert, map it to the output field i…
This commit is contained in:
Carl Bergquist
2017-10-18 12:10:42 +02:00
committed by GitHub

View File

@@ -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()