feat(webhook): adds alert rule message to webhook

close #6807
This commit is contained in:
bergquist
2016-12-02 22:24:35 +01:00
parent f7dced3067
commit 0403f53b6f

View File

@@ -58,6 +58,10 @@ func (this *WebhookNotifier) Notify(evalContext *alerting.EvalContext) error {
bodyJSON.Set("imageUrl", evalContext.ImagePublicUrl)
}
if evalContext.Rule.Message != "" {
bodyJSON.Set("message", evalContext.Rule.Message)
}
body, _ := bodyJSON.MarshalJSON()
cmd := &m.SendWebhookSync{