Alerting: Update Swagger spec (#79850)
* chore: update alerting swagger spec * update public swagger --------- Co-authored-by: rwwiv <rwwiv@users.noreply.github.com> Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
This commit is contained in:
committed by
GitHub
parent
2023821100
commit
66b1a219f4
@@ -549,6 +549,10 @@
|
||||
"credentials_file": {
|
||||
"type": "string"
|
||||
},
|
||||
"credentials_ref": {
|
||||
"description": "CredentialsRef is the name of the secret within the secret manager to use as credentials.",
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
}
|
||||
@@ -618,11 +622,19 @@
|
||||
"password_file": {
|
||||
"type": "string"
|
||||
},
|
||||
"password_ref": {
|
||||
"description": "PasswordRef is the name of the secret within the secret manager to use as the password.",
|
||||
"type": "string"
|
||||
},
|
||||
"username": {
|
||||
"type": "string"
|
||||
},
|
||||
"username_file": {
|
||||
"type": "string"
|
||||
},
|
||||
"username_ref": {
|
||||
"description": "UsernameRef is the name of the secret within the secret manager to use as the username.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"title": "BasicAuth contains basic HTTP authentication credentials.",
|
||||
@@ -1846,6 +1858,9 @@
|
||||
"description": "FollowRedirects specifies whether the client should follow HTTP 3xx redirects.\nThe omitempty flag is not set, because it would be hidden from the\nmarshalled configuration when set to false.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"http_headers": {
|
||||
"$ref": "#/definitions/Headers"
|
||||
},
|
||||
"no_proxy": {
|
||||
"description": "NoProxy contains addresses that should not use a proxy.",
|
||||
"type": "string"
|
||||
@@ -1854,7 +1869,7 @@
|
||||
"$ref": "#/definitions/OAuth2"
|
||||
},
|
||||
"proxy_connect_header": {
|
||||
"$ref": "#/definitions/Header"
|
||||
"$ref": "#/definitions/ProxyHeader"
|
||||
},
|
||||
"proxy_from_environment": {
|
||||
"description": "ProxyFromEnvironment makes use of net/http ProxyFromEnvironment function\nto determine proxies.",
|
||||
@@ -1871,12 +1886,39 @@
|
||||
"type": "object"
|
||||
},
|
||||
"Header": {
|
||||
"additionalProperties": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/Secret"
|
||||
"properties": {
|
||||
"files": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"type": "array"
|
||||
"secrets": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/Secret"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"values": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"title": "Headers represents the configuration for HTTP headers.",
|
||||
"type": "object"
|
||||
},
|
||||
"Headers": {
|
||||
"properties": {
|
||||
"Headers": {
|
||||
"additionalProperties": {
|
||||
"$ref": "#/definitions/Header"
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"title": "Headers represents the configuration for HTTP headers.",
|
||||
"type": "object"
|
||||
},
|
||||
"HostPort": {
|
||||
@@ -2263,6 +2305,10 @@
|
||||
"client_secret_file": {
|
||||
"type": "string"
|
||||
},
|
||||
"client_secret_ref": {
|
||||
"description": "ClientSecretRef is the name of the secret within the secret manager to use as the client\nsecret.",
|
||||
"type": "string"
|
||||
},
|
||||
"endpoint_params": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
@@ -2274,7 +2320,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"proxy_connect_header": {
|
||||
"$ref": "#/definitions/Header"
|
||||
"$ref": "#/definitions/ProxyHeader"
|
||||
},
|
||||
"proxy_from_environment": {
|
||||
"description": "ProxyFromEnvironment makes use of net/http ProxyFromEnvironment function\nto determine proxies.",
|
||||
@@ -2998,7 +3044,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"proxy_connect_header": {
|
||||
"$ref": "#/definitions/Header"
|
||||
"$ref": "#/definitions/ProxyHeader"
|
||||
},
|
||||
"proxy_from_environment": {
|
||||
"description": "ProxyFromEnvironment makes use of net/http ProxyFromEnvironment function\nto determine proxies.",
|
||||
@@ -3010,6 +3056,15 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ProxyHeader": {
|
||||
"additionalProperties": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/Secret"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"PublicError": {
|
||||
"description": "PublicError is derived from Error and only contains information\navailable to the end user.",
|
||||
"properties": {
|
||||
@@ -3884,6 +3939,10 @@
|
||||
"description": "The CA cert to use for the targets.",
|
||||
"type": "string"
|
||||
},
|
||||
"ca_ref": {
|
||||
"description": "CARef is the name of the secret within the secret manager to use as the CA cert for the\ntargets.",
|
||||
"type": "string"
|
||||
},
|
||||
"cert": {
|
||||
"description": "Text of the client cert file for the targets.",
|
||||
"type": "string"
|
||||
@@ -3892,6 +3951,10 @@
|
||||
"description": "The client cert file for the targets.",
|
||||
"type": "string"
|
||||
},
|
||||
"cert_ref": {
|
||||
"description": "CertRef is the name of the secret within the secret manager to use as the client cert for\nthe targets.",
|
||||
"type": "string"
|
||||
},
|
||||
"insecure_skip_verify": {
|
||||
"description": "Disable target certificate validation.",
|
||||
"type": "boolean"
|
||||
@@ -3903,6 +3966,10 @@
|
||||
"description": "The client key file for the targets.",
|
||||
"type": "string"
|
||||
},
|
||||
"key_ref": {
|
||||
"description": "KeyRef is the name of the secret within the secret manager to use as the client key for\nthe targets.",
|
||||
"type": "string"
|
||||
},
|
||||
"max_version": {
|
||||
"$ref": "#/definitions/TLSVersion"
|
||||
},
|
||||
@@ -4663,6 +4730,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"gettableAlerts": {
|
||||
"description": "GettableAlerts gettable alerts",
|
||||
"items": {
|
||||
"$ref": "#/definitions/gettableAlert",
|
||||
"type": "object"
|
||||
@@ -4787,43 +4855,13 @@
|
||||
"type": "object"
|
||||
},
|
||||
"gettableSilences": {
|
||||
"description": "GettableSilences gettable silences",
|
||||
"items": {
|
||||
"$ref": "#/definitions/gettableSilence",
|
||||
"type": "object"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"integration": {
|
||||
"description": "Integration integration",
|
||||
"properties": {
|
||||
"lastNotifyAttempt": {
|
||||
"description": "A timestamp indicating the last attempt to deliver a notification regardless of the outcome.\nFormat: date-time",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"lastNotifyAttemptDuration": {
|
||||
"description": "Duration of the last attempt to deliver a notification in humanized format (`1s` or `15ms`, etc).",
|
||||
"type": "string"
|
||||
},
|
||||
"lastNotifyAttemptError": {
|
||||
"description": "Error string for the last attempt to deliver a notification. Empty if the last attempt was successful.",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "name",
|
||||
"type": "string"
|
||||
},
|
||||
"sendResolved": {
|
||||
"description": "send resolved",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"name",
|
||||
"sendResolved"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"labelSet": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
@@ -4970,25 +5008,12 @@
|
||||
"receiver": {
|
||||
"description": "Receiver receiver",
|
||||
"properties": {
|
||||
"active": {
|
||||
"description": "active",
|
||||
"type": "boolean"
|
||||
},
|
||||
"integrations": {
|
||||
"description": "integrations",
|
||||
"items": {
|
||||
"$ref": "#/definitions/integration"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"name": {
|
||||
"description": "name",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"active",
|
||||
"integrations",
|
||||
"name"
|
||||
],
|
||||
"type": "object"
|
||||
|
||||
Reference in New Issue
Block a user