mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
return empty array for no datapoints
This commit is contained in:
parent
5e11f1a2a1
commit
6488ccd113
@ -315,7 +315,8 @@ func parseResponse(resp *cloudwatch.GetMetricStatisticsOutput, query *CloudWatch
|
||||
var value float64
|
||||
for _, s := range append(query.Statistics, query.ExtendedStatistics...) {
|
||||
series := tsdb.TimeSeries{
|
||||
Tags: map[string]string{},
|
||||
Tags: map[string]string{},
|
||||
Points: make([]tsdb.TimePoint, 0),
|
||||
}
|
||||
for _, d := range query.Dimensions {
|
||||
series.Tags[*d.Name] = *d.Value
|
||||
|
Loading…
Reference in New Issue
Block a user