Cloudwatch: generate types (#61770)

* New pfs impl

* Reached codegen parity with old system

* Update all models.cue inputs

* Rename all models.cue files

* Remove unused prefixfs

* Changes Queries->DataQuery schema interface

* Recodegen

* All tests passing, nearly good now

* Add SchemaInterface to kindsys props

* Add pascal name deriver

* Relocate plugin cue files again

* Clarify use of injected fields

* Remove unnecessary aliasing

* Move DataQuery into mudball

* Allow forcing ExpandReferences on go type generation

* Move DataQuery def into kindsys, add generator to copy it to common

* Fix copy generator to replace package name correctly

* Setup Cloudwatch data query schema

* Add go file

* Re-generate types

* Re-generate types

* Add missing files

* Re-generate docs

* Add MetricStat

* Add CloudWatchAnnotationQuery

* Remove DataQuery extension

* Fixes

* Sync with main

* Update report

---------

Co-authored-by: sam boyer <sdboyer@grafana.com>
This commit is contained in:
Alex Khomenko
2023-02-03 15:27:48 -05:00
committed by GitHub
co-authored by sam boyer
parent ebe54629e7
commit 84a6671911
5 changed files with 958 additions and 9 deletions
+11 -9
View File
@@ -234,7 +234,9 @@
},
"cloudwatchdataquery": {
"category": "composable",
"codeowners": [],
"codeowners": [
"grafana/aws-plugins"
],
"currentVersion": [
0,
0
@@ -242,13 +244,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/cloudwatchdataquery/schema-reference",
"go": "https://github.com/grafana/grafana/tree/main/pkg/tsdb/cloudwatch/kinds/dataquery/types_dataquery_gen.go",
"schema": "https://github.com/grafana/grafana/tree/main/public/app/plugins/datasource/cloudwatch/dataquery.cue",
"ts": "https://github.com/grafana/grafana/tree/main/public/app/plugins/datasource/cloudwatch/dataquery.gen.ts"
},
"machineName": "cloudwatchdataquery",
"maturity": "planned",
"maturity": "merged",
"name": "CloudWatchDataQuery",
"pluralMachineName": "cloudwatchdataquerys",
"pluralName": "CloudWatchDataQuerys",
@@ -2012,13 +2014,14 @@
"items": [
"alertgroupspanelcfg",
"azuremonitordataquery",
"cloudwatchdataquery",
"playlist",
"preferences",
"publicdashboard",
"serviceaccount",
"team"
],
"count": 7
"count": 8
},
"planned": {
"name": "planned",
@@ -2028,7 +2031,6 @@
"alertmanagerdatasourcecfg",
"apikey",
"azuremonitordatasourcecfg",
"cloudwatchdataquery",
"cloudwatchdatasourcecfg",
"dashboarddataquery",
"dashboarddatasourcecfg",
@@ -2074,7 +2076,7 @@
"zipkindataquery",
"zipkindatasourcecfg"
],
"count": 50
"count": 49
},
"stable": {
"name": "stable",