Elasticsearch: Implement schema for query (#62147)

* Elasticsearch: Implement schema for query

* Comment out types I am not sure how to do

* Manually fix typing for PipelineMetricAggregationWithMultipleBucketPaths and BasePipelineMetricAggregation

* Import types to types.ts to have single source of truth

* Cleanup, reorder

* Remove unnecesary Schema.

* Fix test

* Refactor
This commit is contained in:
Ivana Huckova
2023-02-02 09:01:02 +01:00
committed by GitHub
parent 4a8763d7b6
commit ccfa9a4ef0
7 changed files with 2236 additions and 24 deletions
+11 -9
View File
@@ -426,7 +426,9 @@
},
"elasticsearchdataquery": {
"category": "composable",
"codeowners": [],
"codeowners": [
"grafana/observability-logs"
],
"currentVersion": [
0,
0
@@ -434,13 +436,13 @@
"grafanaMaturityCount": 0,
"lineageIsGroup": false,
"links": {
"docs": "n/a",
"go": "n/a",
"schema": "n/a",
"ts": "n/a"
"docs": "https://grafana.com/docs/grafana/next/developers/kinds/composable/elasticsearchdataquery/schema-reference",
"go": "https://github.com/grafana/grafana/tree/main/pkg/tsdb/elasticsearch/kinds/dataquery/types_dataquery_gen.go",
"schema": "https://github.com/grafana/grafana/tree/main/public/app/plugins/datasource/elasticsearch/dataquery.cue",
"ts": "https://github.com/grafana/grafana/tree/main/public/app/plugins/datasource/elasticsearch/dataquery.gen.ts"
},
"machineName": "elasticsearchdataquery",
"maturity": "planned",
"maturity": "merged",
"name": "ElasticsearchDataQuery",
"pluralMachineName": "elasticsearchdataquerys",
"pluralName": "ElasticsearchDataQuerys",
@@ -2002,13 +2004,14 @@
"name": "merged",
"items": [
"alertgroupspanelcfg",
"elasticsearchdataquery",
"playlist",
"preferences",
"publicdashboard",
"serviceaccount",
"team"
],
"count": 6
"count": 7
},
"planned": {
"name": "planned",
@@ -2025,7 +2028,6 @@
"dashboarddatasourcecfg",
"datasource",
"debugpanelcfg",
"elasticsearchdataquery",
"elasticsearchdatasourcecfg",
"flamegraphpanelcfg",
"folder",
@@ -2068,7 +2070,7 @@
"zipkindataquery",
"zipkindatasourcecfg"
],
"count": 54
"count": 53
},
"stable": {
"name": "stable",
File diff suppressed because it is too large Load Diff