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 96cd13044b
commit 9dd6cf45ac

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{