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
303bbb99
Unverified
Commit
303bbb99
authored
Jan 17, 2020
by
Marcus Efraimsson
Committed by
GitHub
Jan 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CloudWatch: Fix ordering of map to resolve flaky test (#21572)
parent
e18d35ad
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
pkg/tsdb/cloudwatch/response_parser.go
+9
-1
No files found.
pkg/tsdb/cloudwatch/response_parser.go
View file @
303bbb99
...
@@ -2,6 +2,7 @@ package cloudwatch
...
@@ -2,6 +2,7 @@ package cloudwatch
import
(
import
(
"fmt"
"fmt"
"sort"
"strconv"
"strconv"
"strings"
"strings"
"time"
"time"
...
@@ -80,7 +81,14 @@ func parseGetMetricDataTimeSeries(metricDataResults map[string]*cloudwatch.Metri
...
@@ -80,7 +81,14 @@ func parseGetMetricDataTimeSeries(metricDataResults map[string]*cloudwatch.Metri
Points
:
make
([]
tsdb
.
TimePoint
,
0
),
Points
:
make
([]
tsdb
.
TimePoint
,
0
),
}
}
for
key
,
values
:=
range
query
.
Dimensions
{
keys
:=
make
([]
string
,
0
)
for
k
:=
range
query
.
Dimensions
{
keys
=
append
(
keys
,
k
)
}
sort
.
Strings
(
keys
)
for
_
,
key
:=
range
keys
{
values
:=
query
.
Dimensions
[
key
]
if
len
(
values
)
==
1
&&
values
[
0
]
!=
"*"
{
if
len
(
values
)
==
1
&&
values
[
0
]
!=
"*"
{
series
.
Tags
[
key
]
=
values
[
0
]
series
.
Tags
[
key
]
=
values
[
0
]
}
else
{
}
else
{
...
...
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