ngalert openapi: Add X-Disable-Provenance to missing operations (#79278)

Swagger(ngalert): Add `X-Disable-Provenance` to missing operations
I added all functions that call the `determineProvenance` function

Schema changes are from:
`make` in `pkg/services/ngalert/api/tooling`
`make swagger-clean && make openapi3-gen` in root
This commit is contained in:
Julien Duchesne
2023-12-13 10:55:59 -05:00
committed by GitHub
parent 03da1a3f3f
commit 884e0427e6
10 changed files with 251 additions and 9 deletions
+42 -1
View File
@@ -2200,6 +2200,11 @@
"name": "UID",
"in": "path",
"required": true
},
{
"type": "string",
"name": "X-Disable-Provenance",
"in": "header"
}
],
"responses": {
@@ -2300,6 +2305,11 @@
"schema": {
"$ref": "#/definitions/EmbeddedContactPoint"
}
},
{
"type": "string",
"name": "X-Disable-Provenance",
"in": "header"
}
],
"responses": {
@@ -2396,6 +2406,11 @@
"schema": {
"$ref": "#/definitions/EmbeddedContactPoint"
}
},
{
"type": "string",
"name": "X-Disable-Provenance",
"in": "header"
}
],
"responses": {
@@ -2484,6 +2499,11 @@
"summary": "Update the interval of a rule group.",
"operationId": "RoutePutAlertRuleGroup",
"parameters": [
{
"type": "string",
"name": "X-Disable-Provenance",
"in": "header"
},
{
"type": "string",
"name": "FolderUID",
@@ -2608,6 +2628,11 @@
"schema": {
"$ref": "#/definitions/MuteTimeInterval"
}
},
{
"type": "string",
"name": "X-Disable-Provenance",
"in": "header"
}
],
"responses": {
@@ -2719,6 +2744,11 @@
"schema": {
"$ref": "#/definitions/MuteTimeInterval"
}
},
{
"type": "string",
"name": "X-Disable-Provenance",
"in": "header"
}
],
"responses": {
@@ -2841,6 +2871,11 @@
"schema": {
"$ref": "#/definitions/Route"
}
},
{
"type": "string",
"name": "X-Disable-Provenance",
"in": "header"
}
],
"responses": {
@@ -2976,6 +3011,11 @@
"schema": {
"$ref": "#/definitions/NotificationTemplateContent"
}
},
{
"type": "string",
"name": "X-Disable-Provenance",
"in": "header"
}
],
"responses": {
@@ -7576,6 +7616,7 @@
"$ref": "#/definitions/gettableAlerts"
},
"gettableSilence": {
"description": "GettableSilence gettable silence",
"type": "object",
"required": [
"comment",
@@ -7632,7 +7673,6 @@
"$ref": "#/definitions/gettableSilences"
},
"integration": {
"description": "Integration integration",
"type": "object",
"required": [
"name",
@@ -7777,6 +7817,7 @@
}
},
"postableSilence": {
"description": "PostableSilence postable silence",
"type": "object",
"required": [
"comment",