Elasticsearch: Add query building for raw data and raw document queries to backend (#59741)

* Elasticsearch: Fix ordering in raw_document and add logic for raw_data

* Add comments

* Fix raw data request to use correct timefield

* Fix linting

* Add raw data as metric type

* Fix linting

* Hopefully fix lint
This commit is contained in:
Ivana Huckova
2022-12-13 13:11:44 +01:00
committed by GitHub
parent d571376e8f
commit 0973501233
9 changed files with 157 additions and 9 deletions
@@ -0,0 +1,30 @@
{
"docvalue_fields": [
"testtime"
],
"query": {
"bool": {
"filter": {
"range": {
"testtime": {
"format": "epoch_millis",
"gte": 1668422437218,
"lte": 1668422625668
}
}
}
}
},
"script_fields": {},
"size": 500,
"sort":
{
"testtime": {
"order": "desc",
"unmapped_type": "boolean"
},
"_doc": {
"order": "desc"
}
}
}