Explorar o código

Fixed description message

utkarshcmu %!s(int64=9) %!d(string=hai) anos
pai
achega
5549d8658a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pkg/services/alerting/notifiers/pagerduty.go

+ 1 - 1
pkg/services/alerting/notifiers/pagerduty.go

@@ -43,7 +43,7 @@ func (this *PagerdutyNotifier) Notify(evalContext *alerting.EvalContext) error {
 
 		bodyJSON := simplejson.New()
 		bodyJSON.Set("service_key", this.Key)
-		bodyJSON.Set("description", evalContext.Rule.Name+"-"+evalContext.Rule.Message)
+		bodyJSON.Set("description", evalContext.Rule.Name + " - " + evalContext.Rule.Message)
 		bodyJSON.Set("client", "Grafana")
 		bodyJSON.Set("event_type", "trigger")