mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Elasticsearch: Fix adding correct min_doc_count to all aggregation types in backend implementation * Update snapshot tests * Fix linting
55 lines
1.0 KiB
JSON
55 lines
1.0 KiB
JSON
{
|
|
"aggs": {
|
|
"4": {
|
|
"aggs": {
|
|
"2": {
|
|
"aggs": {
|
|
"1": {
|
|
"max": {
|
|
"field": "float"
|
|
}
|
|
},
|
|
"3": {
|
|
"min": {
|
|
"field": "float"
|
|
}
|
|
}
|
|
},
|
|
"date_histogram": {
|
|
"extended_bounds": {
|
|
"max": 1668422625668,
|
|
"min": 1668422437218
|
|
},
|
|
"field": "testtime",
|
|
"fixed_interval": "1m",
|
|
"format": "epoch_millis",
|
|
"min_doc_count": 0
|
|
}
|
|
}
|
|
},
|
|
"terms": {
|
|
"field": "label",
|
|
"min_doc_count": 1,
|
|
"order": {
|
|
"_key": "desc"
|
|
},
|
|
"size": 10
|
|
}
|
|
}
|
|
},
|
|
"query": {
|
|
"bool": {
|
|
"filter": {
|
|
"range": {
|
|
"testtime": {
|
|
"format": "epoch_millis",
|
|
"gte": 1668422437218,
|
|
"lte": 1668422625668
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"size": 0
|
|
}
|