From af35e081c29208a97eb4287275d8e255079cc269 Mon Sep 17 00:00:00 2001 From: Mitsuhiro Tanda Date: Tue, 19 Nov 2019 21:36:32 +0900 Subject: [PATCH] handle PartialData status (#20459) --- pkg/tsdb/cloudwatch/response_parser.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/tsdb/cloudwatch/response_parser.go b/pkg/tsdb/cloudwatch/response_parser.go index 6a91b0395fe..23c17b6a3ba 100644 --- a/pkg/tsdb/cloudwatch/response_parser.go +++ b/pkg/tsdb/cloudwatch/response_parser.go @@ -31,6 +31,9 @@ func (e *CloudWatchExecutor) parseResponse(metricDataOutputs []*cloudwatch.GetMe } else { mdr[*r.Id][*r.Label].Timestamps = append(mdr[*r.Id][*r.Label].Timestamps, r.Timestamps...) mdr[*r.Id][*r.Label].Values = append(mdr[*r.Id][*r.Label].Values, r.Values...) + if *r.StatusCode == "Complete" { + mdr[*r.Id][*r.Label].StatusCode = r.StatusCode + } } queries[*r.Id].RequestExceededMaxLimit = requestExceededMaxLimit }