refactor es pipeline aggregation variables to match ES

This commit is contained in:
carl bergquist
2015-12-09 16:25:05 +01:00
parent 0644bfe27c
commit 8e18f2c5d2
7 changed files with 72 additions and 38 deletions

View File

@@ -67,7 +67,17 @@ function (_) {
{text: '1d', value: '1d'},
],
getMovingAverageSourceOptions: function(targets) {
pipelineAggs: ['moving_avg'],
isPipelineAgg: function(metric) {
if (metric.type) {
return this.pipelineAggs.indexOf(metric.type) > -1;
}
return false;
},
getMovingAverageOptions: function(targets) {
var self = this;
var result = [];
_.each(targets.metrics, function(metric) {