Description
When the users are using the BUCKET function (BUCKET(@timestamp, 50, start, end)), ES is doing an autobucketing and returns the results. The interval in some cases is not easy to get computed. For example when the date histogram returns only one data point.
In the case of BUCKET(@timestamp, 1 hour) we can find the interval by parsing the query but this is also not super convenient.
We would like in order to fix bugs like this elastic/kibana#215314 to have the interval as metadata information on the response. Kibana then can use this interval to draw the charts correctly.
Description
When the users are using the BUCKET function (
BUCKET(@timestamp, 50, start, end)), ES is doing an autobucketing and returns the results. The interval in some cases is not easy to get computed. For example when the date histogram returns only one data point.In the case of
BUCKET(@timestamp, 1 hour)we can find the interval by parsing the query but this is also not super convenient.We would like in order to fix bugs like this elastic/kibana#215314 to have the interval as metadata information on the response. Kibana then can use this interval to draw the charts correctly.