Browse Source

Optimize the Dingding match values format

Athurg Feng 7 years ago
parent
commit
201dd6bf65
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/services/alerting/notifiers/dingding.go

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

@@ -75,7 +75,7 @@ func (this *DingDingNotifier) Notify(evalContext *alerting.EvalContext) error {
 	}
 
 	for i, match := range evalContext.EvalMatches {
-		message += fmt.Sprintf("\\n%2d. %s value %s", i+1, match.Metric, match.Value)
+		message += fmt.Sprintf("\\n%2d. %s: %s", i+1, match.Metric, match.Value)
 	}
 
 	var bodyStr string