Pipeline aggregation python

(Carlosvega) #1

I would like to know how can I use this feature with the python API

I would like to concatenate two aggregations. For example:

I want to sum a metric from my documents, which is a quantity, with a date_histogram aggregation with an interval of 1 minute and afterwards, aggregate these buckets in 10 minute intervals but using the average as operation. The reason for doing this is that I don't want some values (small quantities) to distort the final 10 min average.

Is there any way to to this through the API? otherwise I would have to get my 1 minute time series and then perform these operations on my own using pandas or similar.

(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.