Codegen: Generate any instead of interface{} (#70201)

* Chore: Update thema to latest

* Regenerate
This commit is contained in:
Tania
2023-06-16 10:54:56 +02:00
committed by GitHub
parent 9d72ed0875
commit 0316350d16
36 changed files with 189 additions and 187 deletions
@@ -24,7 +24,7 @@ type DataQuery struct {
// For non mixed scenarios this is undefined.
// TODO find a better way to do this ^ that's friendly to schema
// TODO this shouldn't be unknown but DataSourceRef | null
Datasource *interface{} `json:"datasource,omitempty"`
Datasource *any `json:"datasource,omitempty"`
// Hide true if query is disabled (ie should not be returned to the dashboard)
// Note this does not always imply that the query should not be executed since
@@ -52,7 +52,7 @@ type GrafanaPyroscopeDataQuery struct {
// For non mixed scenarios this is undefined.
// TODO find a better way to do this ^ that's friendly to schema
// TODO this shouldn't be unknown but DataSourceRef | null
Datasource *interface{} `json:"datasource,omitempty"`
Datasource *any `json:"datasource,omitempty"`
// Allows to group the results.
GroupBy []string `json:"groupBy"`