Commit 87bc60b9 by Leonard Gram

alerting: adds back the link to grafana.

parent aba6f627
...@@ -111,6 +111,8 @@ func (this *PagerdutyNotifier) Notify(evalContext *alerting.EvalContext) error { ...@@ -111,6 +111,8 @@ func (this *PagerdutyNotifier) Notify(evalContext *alerting.EvalContext) error {
links := make([]interface{}, 1) links := make([]interface{}, 1)
linkJSON := simplejson.New() linkJSON := simplejson.New()
linkJSON.Set("href", ruleUrl) linkJSON.Set("href", ruleUrl)
bodyJSON.Set("client_url", ruleUrl)
bodyJSON.Set("client", "Grafana")
links[0] = linkJSON links[0] = linkJSON
bodyJSON.Set("links", links) bodyJSON.Set("links", links)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment