Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
91285bae
Commit
91285bae
authored
Oct 02, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(cloudwatch): fixed failing unit tests
parent
875d80aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
public/app/plugins/datasource/cloudwatch/datasource.js
+5
-3
No files found.
public/app/plugins/datasource/cloudwatch/datasource.js
View file @
91285bae
...
@@ -254,7 +254,7 @@ function (angular, _) {
...
@@ -254,7 +254,7 @@ function (angular, _) {
var
result
=
[];
var
result
=
[];
_
.
each
(
allResponse
,
function
(
response
,
index
)
{
_
.
each
(
allResponse
,
function
(
response
,
index
)
{
var
metrics
=
transformMetricData
(
response
.
data
,
options
.
targets
[
index
]);
var
metrics
=
transformMetricData
(
response
,
options
.
targets
[
index
]);
result
=
result
.
concat
(
metrics
);
result
=
result
.
concat
(
metrics
);
});
});
...
@@ -309,7 +309,7 @@ function (angular, _) {
...
@@ -309,7 +309,7 @@ function (angular, _) {
}
}
return
cloudwatch
.
listMetrics
(
params
).
then
(
function
(
result
)
{
return
cloudwatch
.
listMetrics
(
params
).
then
(
function
(
result
)
{
return
_
.
chain
(
result
.
data
.
Metrics
).
map
(
function
(
metric
)
{
return
_
.
chain
(
result
.
Metrics
).
map
(
function
(
metric
)
{
return
metric
.
Dimensions
;
return
metric
.
Dimensions
;
}).
reject
(
function
(
metric
)
{
}).
reject
(
function
(
metric
)
{
return
_
.
isEmpty
(
metric
);
return
_
.
isEmpty
(
metric
);
...
@@ -448,7 +448,9 @@ function (angular, _) {
...
@@ -448,7 +448,9 @@ function (angular, _) {
data
:
data
data
:
data
};
};
return
$http
(
options
);
return
$http
(
options
).
then
(
function
(
result
)
{
return
result
.
data
;
});
};
};
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment