We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5542b0a + 610ea09 commit 0d729aeCopy full SHA for 0d729ae
pkg/services/alerting/notifiers/pagerduty.go
@@ -55,7 +55,7 @@ func (this *PagerdutyNotifier) Notify(evalContext *alerting.EvalContext) error {
55
bodyJSON.Set("client_url", ruleUrl)
56
57
if evalContext.ImagePublicUrl != "" {
58
- var contexts []interface{}
+ contexts := make([]interface{}, 1)
59
imageJSON := simplejson.New()
60
imageJSON.Set("type", "image")
61
imageJSON.Set("src", evalContext.ImagePublicUrl)
0 commit comments