From 242689abe242d30bfdd4ab9b8a6be6347eb37931 Mon Sep 17 00:00:00 2001 From: Marcus Efraimsson Date: Wed, 23 May 2018 16:46:26 +0200 Subject: [PATCH] elasticsearch: pipeline aggregation fix for json encoding --- pkg/tsdb/elasticsearch/client/models.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tsdb/elasticsearch/client/models.go b/pkg/tsdb/elasticsearch/client/models.go index 3c86dcce825..2d9839dfd53 100644 --- a/pkg/tsdb/elasticsearch/client/models.go +++ b/pkg/tsdb/elasticsearch/client/models.go @@ -293,7 +293,7 @@ type PipelineAggregation struct { // MarshalJSON returns the JSON encoding of the pipeline aggregation func (a *PipelineAggregation) MarshalJSON() ([]byte, error) { root := map[string]interface{}{ - "bucket_path": a.BucketPath, + "buckets_path": a.BucketPath, } for k, v := range a.Settings {