Commit 62d11c14 by Mitsuhiro Tanda Committed by Torkel Ödegaard

(cloudwatch) fix dimension value find query (#8159)

parent 456b07b7
...@@ -104,7 +104,7 @@ function (angular, _) { ...@@ -104,7 +104,7 @@ function (angular, _) {
query = $scope.datasource.getDimensionKeys($scope.target.namespace, $scope.target.region); query = $scope.datasource.getDimensionKeys($scope.target.namespace, $scope.target.region);
} else if (segment.type === 'value') { } else if (segment.type === 'value') {
var dimensionKey = $scope.dimSegments[$index-2].value; var dimensionKey = $scope.dimSegments[$index-2].value;
query = $scope.datasource.getDimensionValues(target.region, target.namespace, target.metricName, dimensionKey, {}); query = $scope.datasource.getDimensionValues(target.region, target.namespace, target.metricName, dimensionKey, target.dimensions);
} }
return query.then($scope.transformToSegments(true)).then(function(results) { return query.then($scope.transformToSegments(true)).then(function(results) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment