fix swagger spec for receivers API response (#57124) (#57128)

(cherry picked from commit 6ad405e256)

Co-authored-by: Santiago <santiagohernandez.1997@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2022-10-18 12:50:54 -03:00
committed by GitHub
co-authored by Santiago
parent 484df7d682
commit 29baf812cf
7 changed files with 53 additions and 15 deletions
+15 -2
View File
@@ -3278,6 +3278,7 @@
"type": "object"
},
"alertGroup": {
"description": "AlertGroup alert group",
"properties": {
"alerts": {
"description": "alerts",
@@ -3667,6 +3668,7 @@
"type": "array"
},
"postableSilence": {
"description": "PostableSilence postable silence",
"properties": {
"comment": {
"description": "comment",
@@ -4200,13 +4202,13 @@
},
"/api/alertmanager/grafana/config/api/v1/receivers": {
"get": {
"description": "Get a list of all receivers",
"operationId": "RouteGetGrafanaReceivers",
"responses": {
"200": {
"$ref": "#/responses/receivers"
"$ref": "#/responses/receiversResponse"
}
},
"summary": "Get a list of all receivers.",
"tags": [
"alertmanager"
]
@@ -6325,6 +6327,17 @@
"produces": [
"application/json"
],
"responses": {
"receiversResponse": {
"description": "",
"schema": {
"items": {
"$ref": "#/definitions/receiver"
},
"type": "array"
}
}
},
"schemes": [
"http",
"https"