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,26 @@
[
{
"metrics": [
{
"id": "1",
"type": "raw_data",
"settings": {
"size": "500"
}
}
],
"query": "",
"refId": "A",
"datasource": {
"type": "elasticsearch",
"uid": "PE50363A9B6833EE7"
},
"alias": "",
"bucketAggs": [],
"timeField": "testtime",
"key": "Q-ee8fea91-a4c4-4ded-9827-b362476a4083-0",
"datasourceId": 39,
"intervalMs": 2000,
"maxDataPoints": 1318
}
]