Alerting: Align OpenAPI definition with notification settings header (#114363)

fix: Align OpenAPI definition with notification settings header

Signed-off-by: Alexander Soelberg Heidarsson <89837986+alex5517@users.noreply.github.com>
This commit is contained in:
Alexander Soelberg Heidarsson
2025-11-24 23:08:02 +01:00
committed by GitHub
parent 93362c9024
commit fe367b570b
7 changed files with 205 additions and 15 deletions
+40 -2
View File
@@ -1707,6 +1707,10 @@
"is_paused": {
"type": "boolean"
},
"message": {
"description": "Field is only populated when listing alert rule versions.",
"type": "string"
},
"metadata": {
"$ref": "#/definitions/AlertRuleMetadata"
},
@@ -2544,6 +2548,28 @@
"TLSConfig": {
"$ref": "#/definitions/TLSConfig"
},
"audience": {
"description": "Audience optionally specifies the intended audience of the\nrequest. If empty, the value of TokenURL is used as the\nintended audience. Only used if\nGrantType is set to \"urn:ietf:params:oauth:grant-type:jwt-bearer\".",
"type": "string"
},
"claims": {
"additionalProperties": {},
"description": "Claims is a map of claims to be added to the JWT token. Only used if\nGrantType is set to \"urn:ietf:params:oauth:grant-type:jwt-bearer\".",
"type": "object"
},
"client_certificate_key": {
"$ref": "#/definitions/Secret"
},
"client_certificate_key_file": {
"type": "string"
},
"client_certificate_key_id": {
"type": "string"
},
"client_certificate_key_ref": {
"description": "ClientCertificateKeyRef is the name of the secret within the secret manager to use as the client\nsecret.",
"type": "string"
},
"client_id": {
"type": "string"
},
@@ -2563,6 +2589,14 @@
},
"type": "object"
},
"grant_type": {
"description": "GrantType is the OAuth2 grant type to use. It can be one of\n\"client_credentials\" or \"urn:ietf:params:oauth:grant-type:jwt-bearer\" (RFC 7523).\nDefault value is \"client_credentials\"",
"type": "string"
},
"iss": {
"description": "Iss is the OAuth client identifier used when communicating with\nthe configured OAuth provider. Default value is client_id. Only used if\nGrantType is set to \"urn:ietf:params:oauth:grant-type:jwt-bearer\".",
"type": "string"
},
"no_proxy": {
"description": "NoProxy contains addresses that should not use a proxy.",
"type": "string"
@@ -2583,6 +2617,10 @@
},
"type": "array"
},
"signature_algorithm": {
"description": "SignatureAlgorithm is the RSA algorithm used to sign JWT token. Only used if\nGrantType is set to \"urn:ietf:params:oauth:grant-type:jwt-bearer\".\nDefault value is RS256 and valid values RS256, RS384, RS512",
"type": "string"
},
"token_url": {
"type": "string"
}
@@ -5781,7 +5819,7 @@
},
{
"in": "header",
"name": "x-grafana-alerting-notification-receiver",
"name": "x-grafana-alerting-notification-settings",
"type": "string"
},
{
@@ -6071,7 +6109,7 @@
},
{
"in": "header",
"name": "x-grafana-alerting-notification-receiver",
"name": "x-grafana-alerting-notification-settings",
"type": "string"
},
{