mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Re-generate swagger definitions (#62154)
Regenerate swagger, add body binding so parameters work
This commit is contained in:
@@ -2397,6 +2397,15 @@
|
||||
"testing"
|
||||
],
|
||||
"operationId": "BacktestConfig",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "Body",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/BacktestConfig"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "BacktestResult",
|
||||
@@ -2653,9 +2662,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"AlertStateType": {
|
||||
"type": "string"
|
||||
},
|
||||
"AlertingRule": {
|
||||
"description": "adapted from cortex",
|
||||
"type": "object",
|
||||
@@ -2914,9 +2920,31 @@
|
||||
}
|
||||
},
|
||||
"DataTopic": {
|
||||
"description": "nolint:revive",
|
||||
"type": "string",
|
||||
"title": "DataTopic is used to identify which topic the frame should be assigned to."
|
||||
},
|
||||
"DiscordConfig": {
|
||||
"type": "object",
|
||||
"title": "DiscordConfig configures notifications via Discord.",
|
||||
"properties": {
|
||||
"http_config": {
|
||||
"$ref": "#/definitions/HTTPClientConfig"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
"send_resolved": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"webhook_url": {
|
||||
"$ref": "#/definitions/SecretURL"
|
||||
}
|
||||
}
|
||||
},
|
||||
"DiscoveryBase": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -3368,6 +3396,12 @@
|
||||
"GettableApiReceiver": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"discord_configs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/DiscordConfig"
|
||||
}
|
||||
},
|
||||
"email_configs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@@ -3426,6 +3460,12 @@
|
||||
"$ref": "#/definitions/VictorOpsConfig"
|
||||
}
|
||||
},
|
||||
"webex_configs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/WebexConfig"
|
||||
}
|
||||
},
|
||||
"webhook_configs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@@ -3491,7 +3531,7 @@
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"$ref": "#/definitions/Json"
|
||||
"$ref": "#/definitions/RawMessage"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
@@ -3723,9 +3763,15 @@
|
||||
"victorops_api_key": {
|
||||
"$ref": "#/definitions/Secret"
|
||||
},
|
||||
"victorops_api_key_file": {
|
||||
"type": "string"
|
||||
},
|
||||
"victorops_api_url": {
|
||||
"$ref": "#/definitions/URL"
|
||||
},
|
||||
"webex_api_url": {
|
||||
"$ref": "#/definitions/URL"
|
||||
},
|
||||
"wechat_api_corp_id": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -3765,6 +3811,9 @@
|
||||
"oauth2": {
|
||||
"$ref": "#/definitions/OAuth2"
|
||||
},
|
||||
"proxy_connect_header": {
|
||||
"$ref": "#/definitions/Header"
|
||||
},
|
||||
"proxy_url": {
|
||||
"$ref": "#/definitions/URL"
|
||||
},
|
||||
@@ -3773,6 +3822,15 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Header": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/Secret"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HostPort": {
|
||||
"type": "object",
|
||||
"title": "HostPort represents a \"host:port\" network address.",
|
||||
@@ -3866,82 +3924,6 @@
|
||||
"$ref": "#/definitions/Label"
|
||||
}
|
||||
},
|
||||
"LegacyAlert": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"Created": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"DashboardId": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"EvalData": {
|
||||
"$ref": "#/definitions/Json"
|
||||
},
|
||||
"ExecutionError": {
|
||||
"type": "string"
|
||||
},
|
||||
"For": {
|
||||
"$ref": "#/definitions/Duration"
|
||||
},
|
||||
"Frequency": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"Handler": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"Id": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"Message": {
|
||||
"type": "string"
|
||||
},
|
||||
"Name": {
|
||||
"type": "string"
|
||||
},
|
||||
"NewStateDate": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"OrgId": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"PanelId": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"Settings": {
|
||||
"$ref": "#/definitions/Json"
|
||||
},
|
||||
"Severity": {
|
||||
"type": "string"
|
||||
},
|
||||
"Silenced": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"State": {
|
||||
"$ref": "#/definitions/AlertStateType"
|
||||
},
|
||||
"StateChanges": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"Updated": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"Version": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
},
|
||||
"MatchRegexps": {
|
||||
"type": "object",
|
||||
"title": "MatchRegexps represents a map of Regexp.",
|
||||
@@ -4240,15 +4222,24 @@
|
||||
"routing_key": {
|
||||
"$ref": "#/definitions/Secret"
|
||||
},
|
||||
"routing_key_file": {
|
||||
"type": "string"
|
||||
},
|
||||
"send_resolved": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"service_key": {
|
||||
"$ref": "#/definitions/Secret"
|
||||
},
|
||||
"service_key_file": {
|
||||
"type": "string"
|
||||
},
|
||||
"severity": {
|
||||
"type": "string"
|
||||
},
|
||||
"source": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"$ref": "#/definitions/URL"
|
||||
}
|
||||
@@ -4337,6 +4328,12 @@
|
||||
"PostableApiReceiver": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"discord_configs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/DiscordConfig"
|
||||
}
|
||||
},
|
||||
"email_configs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@@ -4395,6 +4392,12 @@
|
||||
"$ref": "#/definitions/VictorOpsConfig"
|
||||
}
|
||||
},
|
||||
"webex_configs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/WebexConfig"
|
||||
}
|
||||
},
|
||||
"webhook_configs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@@ -4457,7 +4460,7 @@
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"$ref": "#/definitions/Json"
|
||||
"$ref": "#/definitions/RawMessage"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
@@ -4743,6 +4746,9 @@
|
||||
"token": {
|
||||
"$ref": "#/definitions/Secret"
|
||||
},
|
||||
"token_file": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -4751,6 +4757,9 @@
|
||||
},
|
||||
"user_key": {
|
||||
"$ref": "#/definitions/Secret"
|
||||
},
|
||||
"user_key_file": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -4835,10 +4844,19 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"RawMessage": {
|
||||
"type": "object"
|
||||
},
|
||||
"Receiver": {
|
||||
"type": "object",
|
||||
"title": "Receiver configuration provides configuration on how to contact a receiver.",
|
||||
"properties": {
|
||||
"discord_configs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/DiscordConfig"
|
||||
}
|
||||
},
|
||||
"email_configs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@@ -4891,6 +4909,12 @@
|
||||
"$ref": "#/definitions/VictorOpsConfig"
|
||||
}
|
||||
},
|
||||
"webex_configs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/WebexConfig"
|
||||
}
|
||||
},
|
||||
"webhook_configs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@@ -5392,6 +5416,9 @@
|
||||
"description": "The client key file for the targets.",
|
||||
"type": "string"
|
||||
},
|
||||
"max_version": {
|
||||
"$ref": "#/definitions/TLSVersion"
|
||||
},
|
||||
"min_version": {
|
||||
"$ref": "#/definitions/TLSVersion"
|
||||
},
|
||||
@@ -5699,7 +5726,7 @@
|
||||
"$ref": "#/definitions/Secret"
|
||||
},
|
||||
"api_key_file": {
|
||||
"$ref": "#/definitions/Secret"
|
||||
"type": "string"
|
||||
},
|
||||
"api_url": {
|
||||
"$ref": "#/definitions/URL"
|
||||
@@ -5737,6 +5764,27 @@
|
||||
"type": "string",
|
||||
"title": "VisType is used to indicate how the data should be visualized in explore."
|
||||
},
|
||||
"WebexConfig": {
|
||||
"type": "object",
|
||||
"title": "WebexConfig configures notifications via Webex.",
|
||||
"properties": {
|
||||
"api_url": {
|
||||
"$ref": "#/definitions/URL"
|
||||
},
|
||||
"http_config": {
|
||||
"$ref": "#/definitions/HTTPClientConfig"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
"room_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"send_resolved": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"WebhookConfig": {
|
||||
"type": "object",
|
||||
"title": "WebhookConfig configures notifications via a generic webhook.",
|
||||
@@ -5814,6 +5862,7 @@
|
||||
}
|
||||
},
|
||||
"alertGroup": {
|
||||
"description": "AlertGroup alert group",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"alerts",
|
||||
@@ -5838,6 +5887,7 @@
|
||||
"$ref": "#/definitions/alertGroup"
|
||||
},
|
||||
"alertGroups": {
|
||||
"description": "AlertGroups alert groups",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/alertGroup"
|
||||
@@ -6246,6 +6296,7 @@
|
||||
"$ref": "#/definitions/postableSilence"
|
||||
},
|
||||
"receiver": {
|
||||
"description": "Receiver receiver",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"active",
|
||||
|
||||
Reference in New Issue
Block a user