Alerting: Fix path for cortex-style Prometheus namespaces conversion endpoint (#103655)
This commit is contained in:
@@ -1454,6 +1454,12 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"jira_configs": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/JiraConfig"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"msteams_configs": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/MSTeamsConfig"
|
||||
@@ -1815,6 +1821,9 @@
|
||||
"http_config": {
|
||||
"$ref": "#/definitions/HTTPClientConfig"
|
||||
},
|
||||
"jira_api_url": {
|
||||
"$ref": "#/definitions/URL"
|
||||
},
|
||||
"opsgenie_api_key": {
|
||||
"$ref": "#/definitions/Secret"
|
||||
},
|
||||
@@ -1863,6 +1872,9 @@
|
||||
"smtp_smarthost": {
|
||||
"$ref": "#/definitions/HostPort"
|
||||
},
|
||||
"smtp_tls_config": {
|
||||
"$ref": "#/definitions/TLSConfig"
|
||||
},
|
||||
"telegram_api_url": {
|
||||
"$ref": "#/definitions/URL"
|
||||
},
|
||||
@@ -2053,6 +2065,57 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"JiraConfig": {
|
||||
"properties": {
|
||||
"api_url": {
|
||||
"$ref": "#/definitions/URL"
|
||||
},
|
||||
"custom_fields": {
|
||||
"additionalProperties": {},
|
||||
"type": "object"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"http_config": {
|
||||
"$ref": "#/definitions/HTTPClientConfig"
|
||||
},
|
||||
"issue_type": {
|
||||
"type": "string"
|
||||
},
|
||||
"labels": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"priority": {
|
||||
"type": "string"
|
||||
},
|
||||
"project": {
|
||||
"type": "string"
|
||||
},
|
||||
"reopen_duration": {
|
||||
"$ref": "#/definitions/Duration"
|
||||
},
|
||||
"reopen_transition": {
|
||||
"type": "string"
|
||||
},
|
||||
"resolve_transition": {
|
||||
"type": "string"
|
||||
},
|
||||
"send_resolved": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"summary": {
|
||||
"type": "string"
|
||||
},
|
||||
"wont_fix_resolution": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Json": {
|
||||
"type": "object"
|
||||
},
|
||||
@@ -2659,6 +2722,12 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"jira_configs": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/JiraConfig"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"msteams_configs": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/MSTeamsConfig"
|
||||
@@ -3401,6 +3470,12 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"jira_configs": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/JiraConfig"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"msteams_configs": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/MSTeamsConfig"
|
||||
@@ -4657,6 +4732,9 @@
|
||||
"send_resolved": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"timeout": {
|
||||
"$ref": "#/definitions/Duration"
|
||||
},
|
||||
"url": {
|
||||
"$ref": "#/definitions/SecretURL"
|
||||
},
|
||||
@@ -4909,6 +4987,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"gettableAlerts": {
|
||||
"description": "GettableAlerts gettable alerts",
|
||||
"items": {
|
||||
"$ref": "#/definitions/gettableAlert",
|
||||
"type": "object"
|
||||
@@ -6376,36 +6455,6 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/convert/api/prom/config/v1/rules": {
|
||||
"post": {
|
||||
"consumes": [
|
||||
"application/json",
|
||||
"application/yaml"
|
||||
],
|
||||
"operationId": "RouteConvertPrometheusCortexPostRuleGroups",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"responses": {
|
||||
"202": {
|
||||
"description": "ConvertPrometheusResponse",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ConvertPrometheusResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "ForbiddenError",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ForbiddenError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"summary": "Converts the submitted rule groups into Grafana-Managed Rules.",
|
||||
"tags": [
|
||||
"convert_prometheus"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/convert/api/prom/rules": {
|
||||
"get": {
|
||||
"operationId": "RouteConvertPrometheusCortexGetRules",
|
||||
@@ -6436,6 +6485,34 @@
|
||||
"tags": [
|
||||
"convert_prometheus"
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"consumes": [
|
||||
"application/json",
|
||||
"application/yaml"
|
||||
],
|
||||
"operationId": "RouteConvertPrometheusCortexPostRuleGroups",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"responses": {
|
||||
"202": {
|
||||
"description": "ConvertPrometheusResponse",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ConvertPrometheusResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "ForbiddenError",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ForbiddenError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"summary": "Converts the submitted rule groups into Grafana-Managed Rules.",
|
||||
"tags": [
|
||||
"convert_prometheus"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/convert/api/prom/rules/{NamespaceTitle}": {
|
||||
|
||||
Reference in New Issue
Block a user