See grafana/grafana#19911
In ElasticSearch 7.2, the interval property was deprecated ( https://www.elastic.co/guide/en/elasticsearch/reference/7.2/search-aggregations-bucket-datehistogram-aggregation.html#_calendar_and_fixed_intervals ):
|
/** |
|
* {@inheritdoc} |
|
*/ |
|
public function getArray() |
|
{ |
|
if (!$this->getField() || !$this->getInterval()) { |
|
throw new \LogicException('Date histogram aggregation must have field and interval set.'); |
|
} |
|
|
|
$out = [ |
|
'field' => $this->getField(), |
|
'interval' => $this->getInterval(), |
|
]; |
|
|
|
if (!empty($this->format)) { |
|
$out['format'] = $this->format; |
|
} |
|
|
|
return $out; |
|
} |
Either calendar_interval or fixed_interval should be used instead: https://www.elastic.co/guide/en/elasticsearch/reference/8.0/search-aggregations-bucket-datehistogram-aggregation.html#calendar_and_fixed_intervals
See grafana/grafana#19911
In ElasticSearch 7.2, the
intervalproperty was deprecated ( https://www.elastic.co/guide/en/elasticsearch/reference/7.2/search-aggregations-bucket-datehistogram-aggregation.html#_calendar_and_fixed_intervals ):ElasticsearchDSL/src/Aggregation/Bucketing/DateHistogramAggregation.php
Lines 92 to 111 in b4c3c89
Either
calendar_intervalorfixed_intervalshould be used instead: https://www.elastic.co/guide/en/elasticsearch/reference/8.0/search-aggregations-bucket-datehistogram-aggregation.html#calendar_and_fixed_intervals