Schema: Initial Azure Monitor query schema (#62018)

* Initial schema

- Add types based off of current frontend

* Rename and field-level comments

* Update report and regenerate files

* Rename frontend Azure folder

- Doing this for consistency and to ensure code-generation works
- Update betterer results due to file renames

* Remove default and add back enum vals that I deleted

* Set workspace prop as optional

* Replace template variable types

* Connect frontend query types

- Keep properties optional for now to avoid major changes
- Rename AzureMetricResource
- Correctly use ResultFormat

* Add TSVeneer decorator

* Update schema

* Update type

* Update CODEOWNERS

* Fix gen-cue issue

* Fix backend test

* Fix e2e test

* Update code coverage

* Remove references to old Azure Monitor path

* Review

* Regen files
This commit is contained in:
Andreas Christou
2023-02-03 16:06:54 +00:00
committed by GitHub
parent 57ac59c7f6
commit d7f7cd1e61
170 changed files with 1208 additions and 395 deletions
+8 -8
View File
@@ -150,13 +150,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/azuremonitordataquery/schema-reference",
"go": "https://github.com/grafana/grafana/tree/main/pkg/tsdb/grafana-azure-monitor-datasource/kinds/dataquery/types_dataquery_gen.go",
"schema": "https://github.com/grafana/grafana/tree/main/public/app/plugins/datasource/grafana-azure-monitor-datasource/dataquery.cue",
"ts": "https://github.com/grafana/grafana/tree/main/public/app/plugins/datasource/grafana-azure-monitor-datasource/dataquery.gen.ts"
},
"machineName": "azuremonitordataquery",
"maturity": "planned",
"maturity": "merged",
"name": "AzureMonitorDataQuery",
"pluralMachineName": "azuremonitordataquerys",
"pluralName": "AzureMonitorDataQuerys",
@@ -2010,6 +2010,7 @@
"name": "merged",
"items": [
"alertgroupspanelcfg",
"azuremonitordataquery",
"elasticsearchdataquery",
"playlist",
"preferences",
@@ -2017,7 +2018,7 @@
"serviceaccount",
"team"
],
"count": 7
"count": 8
},
"planned": {
"name": "planned",
@@ -2026,7 +2027,6 @@
"alertmanagerdataquery",
"alertmanagerdatasourcecfg",
"apikey",
"azuremonitordataquery",
"azuremonitordatasourcecfg",
"cloudwatchdataquery",
"cloudwatchdatasourcecfg",
@@ -2074,7 +2074,7 @@
"zipkindataquery",
"zipkindatasourcecfg"
],
"count": 51
"count": 50
},
"stable": {
"name": "stable",