Optimize the Dingding match values format

This commit is contained in:
Athurg Feng 2018-10-25 18:53:45 +08:00
parent cb86e38628
commit 201dd6bf65

View File

@ -75,7 +75,7 @@ func (this *DingDingNotifier) Notify(evalContext *alerting.EvalContext) error {
} }
for i, match := range evalContext.EvalMatches { 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 var bodyStr string