mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
refactor es pipeline aggregation variables to match ES
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user