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

@@ -171,8 +171,8 @@ function () {
var metricAgg = null;
if (metric.type === 'moving_avg') {
if (metric.mavgSource && /^\d*$/.test(metric.mavgSource)) {
metricAgg = { buckets_path: metric.mavgSource };
if (metric.pipelineAgg && /^\d*$/.test(metric.pipelineAgg)) {
metricAgg = { buckets_path: metric.pipelineAgg };
} else {
continue;
}