* update swagger json files match datasourceUid change
underlying change made in https://github.com/grafana/grafana/pull/33282
* Document DatasourceUID field in AlertQuery model
* Run spec generation from inside a docker container
* Generate latest spec
Co-authored-by: Sofia Papagiannaki <sofia@grafana.com>
"description":"Package definitions includes the types required for generating or consuming an OpenAPI\nspec for the Unified Alerting API.\nDocumentation of the API.",
@ -180,7 +190,7 @@
"200":{
"description":"AlertGroups",
"schema":{
"$ref":"#/definitions/AlertGroups"
"$ref":"#/definitions/alertGroups"
}
},
"400":{
@ -295,7 +305,7 @@
"200":{
"description":"GettableSilences",
"schema":{
"$ref":"#/definitions/GettableSilences"
"$ref":"#/definitions/gettableSilences"
}
},
"400":{
@ -971,6 +981,11 @@
"type":"object",
"title":"AlertQuery represents a single query associated with an alert definition.",
"properties":{
"datasourceUid":{
"description":"Grafana data source unique identifer; it should be '-100' for a Server Side Expression operation.",
"type":"string",
"x-go-name":"DatasourceUID"
},
"model":{
"description":"JSON is the raw JSON query and includes the above properties as well as custom properties.",