File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
public/app/plugins/datasource/cloudwatch Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ function (angular, _) {
254
254
var result = [ ] ;
255
255
256
256
_ . each ( allResponse , function ( response , index ) {
257
- var metrics = transformMetricData ( response . data , options . targets [ index ] ) ;
257
+ var metrics = transformMetricData ( response , options . targets [ index ] ) ;
258
258
result = result . concat ( metrics ) ;
259
259
} ) ;
260
260
@@ -309,7 +309,7 @@ function (angular, _) {
309
309
}
310
310
311
311
return cloudwatch . listMetrics ( params ) . then ( function ( result ) {
312
- return _ . chain ( result . data . Metrics ) . map ( function ( metric ) {
312
+ return _ . chain ( result . Metrics ) . map ( function ( metric ) {
313
313
return metric . Dimensions ;
314
314
} ) . reject ( function ( metric ) {
315
315
return _ . isEmpty ( metric ) ;
@@ -448,7 +448,9 @@ function (angular, _) {
448
448
data : data
449
449
} ;
450
450
451
- return $http ( options ) ;
451
+ return $http ( options ) . then ( function ( result ) {
452
+ return result . data ;
453
+ } ) ;
452
454
} ;
453
455
} ;
454
456
You can’t perform that action at this time.
0 commit comments