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
@@ -1220,7 +1220,7 @@
},
{
"type": "string",
"name": "x-grafana-alerting-notification-receiver",
"name": "x-grafana-alerting-notification-settings",
"in": "header"
},
{
@@ -1634,7 +1634,7 @@
},
{
"type": "string",
"name": "x-grafana-alerting-notification-receiver",
"name": "x-grafana-alerting-notification-settings",
"in": "header"
},
{
@@ -6124,6 +6124,10 @@
"is_paused": {
"type": "boolean"
},
"message": {
"description": "Field is only populated when listing alert rule versions.",
"type": "string"
},
"metadata": {
"$ref": "#/definitions/AlertRuleMetadata"
},
@@ -6963,6 +6967,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": {
"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",
"additionalProperties": {}
},
"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"
},
@@ -6982,6 +7008,14 @@
"type": "string"
}
},
"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"
@@ -7002,6 +7036,10 @@
"type": "string"
}
},
"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"
}