alerting: adds back the link to grafana.

This commit is contained in:
Leonard Gram 2018-03-13 13:10:55 +01:00
parent aba6f627c5
commit 87bc60b9d7

View File

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