feat(webhook): adds alert rule message to webhook

close #6807
pull/6813/head
bergquist 9 years ago
parent 96cd13044b
commit 9dd6cf45ac
  1. 4
      pkg/services/alerting/notifiers/webhook.go

@ -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{

Loading…
Cancel
Save