Commit 242689ab by Marcus Efraimsson

elasticsearch: pipeline aggregation fix for json encoding

parent dce59ccf
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment