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
e86dfcf5
Commit
e86dfcf5
authored
Dec 10, 2015
by
Carl Bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename mavgoptions to more generic pipelineaggs
parent
8e18f2c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
public/app/plugins/datasource/elasticsearch/metric_agg.js
+6
-6
public/app/plugins/datasource/elasticsearch/partials/metricAgg.html
+1
-1
No files found.
public/app/plugins/datasource/elasticsearch/metric_agg.js
View file @
e86dfcf5
...
@@ -13,21 +13,21 @@ function (angular, _, queryDef) {
...
@@ -13,21 +13,21 @@ function (angular, _, queryDef) {
$scope
.
metricAggTypes
=
queryDef
.
metricAggTypes
;
$scope
.
metricAggTypes
=
queryDef
.
metricAggTypes
;
$scope
.
extendedStats
=
queryDef
.
extendedStats
;
$scope
.
extendedStats
=
queryDef
.
extendedStats
;
$scope
.
mav
gOptions
=
[];
$scope
.
pipelineAg
gOptions
=
[];
$scope
.
init
=
function
()
{
$scope
.
init
=
function
()
{
$scope
.
agg
=
metricAggs
[
$scope
.
index
];
$scope
.
agg
=
metricAggs
[
$scope
.
index
];
$scope
.
validateModel
();
$scope
.
validateModel
();
$scope
.
update
Mav
gOptions
();
$scope
.
update
PipelineAg
gOptions
();
};
};
$scope
.
update
Mav
gOptions
=
function
()
{
$scope
.
update
PipelineAg
gOptions
=
function
()
{
$scope
.
mav
gOptions
=
queryDef
.
getMovingAverageOptions
(
$scope
.
target
);
$scope
.
pipelineAg
gOptions
=
queryDef
.
getMovingAverageOptions
(
$scope
.
target
);
};
};
$rootScope
.
onAppEvent
(
'elastic-query-updated'
,
function
()
{
$rootScope
.
onAppEvent
(
'elastic-query-updated'
,
function
()
{
$scope
.
index
=
_
.
indexOf
(
metricAggs
,
$scope
.
agg
);
$scope
.
index
=
_
.
indexOf
(
metricAggs
,
$scope
.
agg
);
$scope
.
update
Mav
gOptions
();
$scope
.
update
PipelineAg
gOptions
();
$scope
.
validateModel
();
$scope
.
validateModel
();
},
$scope
);
},
$scope
);
...
@@ -78,7 +78,7 @@ function (angular, _, queryDef) {
...
@@ -78,7 +78,7 @@ function (angular, _, queryDef) {
$scope
.
toggleOptions
=
function
()
{
$scope
.
toggleOptions
=
function
()
{
$scope
.
showOptions
=
!
$scope
.
showOptions
;
$scope
.
showOptions
=
!
$scope
.
showOptions
;
$scope
.
update
Mav
gOptions
();
$scope
.
update
PipelineAg
gOptions
();
};
};
$scope
.
onChangeInternal
=
function
()
{
$scope
.
onChangeInternal
=
function
()
{
...
...
public/app/plugins/datasource/elasticsearch/partials/metricAgg.html
View file @
e86dfcf5
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
Based on
Based on
</li>
</li>
<li>
<li>
<metric-segment-model
property=
"agg.pipelineAgg"
options=
"
mav
gOptions"
on-change=
"onChangeInternal()"
css-class=
"last"
></metric-segment-model>
<metric-segment-model
property=
"agg.pipelineAgg"
options=
"
pipelineAg
gOptions"
on-change=
"onChangeInternal()"
css-class=
"last"
></metric-segment-model>
</li>
</li>
</ul>
</ul>
<div
class=
"clearfix"
></div>
<div
class=
"clearfix"
></div>
...
...
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