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
9d9f0e1b
Unverified
Commit
9d9f0e1b
authored
Dec 05, 2019
by
Erik Sundell
Committed by
GitHub
Dec 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove false positive error message for expression and id field (#20864)
parent
d8984d21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
public/app/plugins/datasource/cloudwatch/datasource.ts
+2
-2
No files found.
public/app/plugins/datasource/cloudwatch/datasource.ts
View file @
9d9f0e1b
...
...
@@ -78,8 +78,8 @@ export default class CloudWatchDatasource extends DataSourceApi<CloudWatchQuery,
item
.
dimensions
=
this
.
convertDimensionFormat
(
item
.
dimensions
,
options
.
scopedVars
);
item
.
statistics
=
item
.
statistics
.
map
(
stat
=>
this
.
replace
(
stat
,
options
.
scopedVars
,
true
,
'statistics'
));
item
.
period
=
String
(
this
.
getPeriod
(
item
,
options
));
// use string format for period in graph query, and alerting
item
.
id
=
this
.
replace
(
item
.
id
,
options
.
scopedVars
,
true
,
'id'
);
item
.
expression
=
this
.
replace
(
item
.
expression
,
options
.
scopedVars
,
true
,
'expression'
);
item
.
id
=
this
.
templateSrv
.
replace
(
item
.
id
,
options
.
scopedVars
);
item
.
expression
=
this
.
templateSrv
.
replace
(
item
.
expression
,
options
.
scopedVars
);
// valid ExtendedStatistics is like p90.00, check the pattern
const
hasInvalidStatistics
=
item
.
statistics
.
some
(
s
=>
{
...
...
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