Browse Source

elasticsearch: pipeline aggregation fix for json encoding

Marcus Efraimsson 7 years ago
parent
commit
242689abe2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/tsdb/elasticsearch/client/models.go

+ 1 - 1
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 {