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
26232406
Commit
26232406
authored
Feb 07, 2016
by
utkarshcmu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fill Policy visible only in <=2.2
parent
908e8577
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
public/app/plugins/datasource/opentsdb/partials/query.editor.html
+2
-3
public/app/plugins/datasource/opentsdb/query_ctrl.ts
+3
-0
No files found.
public/app/plugins/datasource/opentsdb/partials/query.editor.html
View file @
26232406
...
...
@@ -63,12 +63,11 @@
</select>
</li>
<li
class=
"tight-form-item query-keyword"
style=
"width: 59px"
>
<li
class=
"tight-form-item query-keyword"
style=
"width: 59px"
ng-if=
"ctrl.tsdbVersion == 2"
>
Fill
<tip>
Available since OpenTSDB 2.2
</tip>
</li>
<li>
<li
ng-if=
"ctrl.tsdbVersion == 2"
>
<select
ng-model=
"ctrl.target.downsampleFillPolicy"
class=
"tight-form-input input-small"
ng-options=
"agg for agg in ctrl.fillPolicies"
ng-change=
"ctrl.targetBlur()"
>
...
...
public/app/plugins/datasource/opentsdb/query_ctrl.ts
View file @
26232406
...
...
@@ -8,6 +8,7 @@ export class OpenTsQueryCtrl extends QueryCtrl {
static
templateUrl
=
'partials/query.editor.html'
;
aggregators
:
any
;
fillPolicies
:
any
;
tsdbVersion
:
any
;
aggregator
:
any
;
downsampleInterval
:
any
;
downsampleAggregator
:
any
;
...
...
@@ -26,6 +27,8 @@ export class OpenTsQueryCtrl extends QueryCtrl {
this
.
aggregators
=
[
'avg'
,
'sum'
,
'min'
,
'max'
,
'dev'
,
'zimsum'
,
'mimmin'
,
'mimmax'
];
this
.
fillPolicies
=
[
'none'
,
'nan'
,
'null'
,
'zero'
];
this
.
tsdbVersion
=
this
.
datasource
.
tsdbVersion
;
if
(
!
this
.
target
.
aggregator
)
{
this
.
target
.
aggregator
=
'sum'
;
}
...
...
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