bugfix: genMetric

This commit is contained in:
UlricQin 2020-04-07 18:55:23 +08:00
parent 58ccd2153e
commit 92c0ee99d6
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ func genMetrics(event *model.Event) []string {
logger.Errorf("[genMetric] get event detail failed, event: %+v, err: %v", event, err)
} else {
for i := 0; i < len(detail); i++ {
metricList = append(metricList, detail[0].Metric)
metricList = append(metricList, detail[i].Metric)
}
}
return metricList