alerting: adds back the link to grafana.

pull/11225/head
Leonard Gram 7 years ago
parent aba6f627c5
commit 87bc60b9d7
  1. 2
      pkg/services/alerting/notifiers/pagerduty.go

@ -111,6 +111,8 @@ func (this *PagerdutyNotifier) Notify(evalContext *alerting.EvalContext) error {
links := make([]interface{}, 1)
linkJSON := simplejson.New()
linkJSON.Set("href", ruleUrl)
bodyJSON.Set("client_url", ruleUrl)
bodyJSON.Set("client", "Grafana")
links[0] = linkJSON
bodyJSON.Set("links", links)

Loading…
Cancel
Save