浏览代码

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

Mitsuhiro Tanda 8 年之前
父节点
当前提交
62d11c147b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/app/plugins/datasource/cloudwatch/query_parameter_ctrl.js

+ 1 - 1
public/app/plugins/datasource/cloudwatch/query_parameter_ctrl.js

@@ -104,7 +104,7 @@ function (angular, _) {
         query = $scope.datasource.getDimensionKeys($scope.target.namespace, $scope.target.region);
       } else if (segment.type === '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) {