mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Improve openAPI specification and docs for export endpoints (#85008)
This commit is contained in:
@@ -4176,7 +4176,6 @@
|
||||
"type": "object"
|
||||
},
|
||||
"URL": {
|
||||
"description": "The general form represented is:\n\n[scheme:][//[userinfo@]host][/]path[?query][#fragment]\n\nURLs that do not start with a slash after the scheme are interpreted as:\n\nscheme:opaque[?query][#fragment]\n\nNote that the Path field is stored in decoded form: /%47%6f%2f becomes /Go/.\nA consequence is that it is impossible to tell which slashes in the Path were\nslashes in the raw URL and which were %2f. This distinction is rarely important,\nbut when it is, the code should use the EscapedPath method, which preserves\nthe original encoding of Path.\n\nThe RawPath field is an optional field which is only set when the default\nencoding of Path is different from the escaped path. See the EscapedPath method\nfor more details.\n\nURL's String method uses the EscapedPath method to obtain the path.",
|
||||
"properties": {
|
||||
"ForceQuery": {
|
||||
"type": "boolean"
|
||||
@@ -4212,7 +4211,7 @@
|
||||
"$ref": "#/definitions/Userinfo"
|
||||
}
|
||||
},
|
||||
"title": "A URL represents a parsed URL (technically, a URI reference).",
|
||||
"title": "URL is a custom URL type that allows validation at configuration load time.",
|
||||
"type": "object"
|
||||
},
|
||||
"UpdateRuleGroupResponse": {
|
||||
@@ -4442,6 +4441,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"alertGroups": {
|
||||
"description": "AlertGroups alert groups",
|
||||
"items": {
|
||||
"$ref": "#/definitions/alertGroup"
|
||||
},
|
||||
@@ -4807,6 +4807,7 @@
|
||||
"type": "array"
|
||||
},
|
||||
"postableSilence": {
|
||||
"description": "PostableSilence postable silence",
|
||||
"properties": {
|
||||
"comment": {
|
||||
"description": "comment",
|
||||
@@ -4844,7 +4845,6 @@
|
||||
"type": "object"
|
||||
},
|
||||
"receiver": {
|
||||
"description": "Receiver receiver",
|
||||
"properties": {
|
||||
"active": {
|
||||
"description": "active",
|
||||
@@ -5032,7 +5032,12 @@
|
||||
},
|
||||
{
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"in": "query",
|
||||
"name": "format",
|
||||
"type": "string"
|
||||
@@ -5059,6 +5064,13 @@
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "AlertingFileExport",
|
||||
@@ -5189,7 +5201,12 @@
|
||||
},
|
||||
{
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"in": "query",
|
||||
"name": "format",
|
||||
"type": "string"
|
||||
@@ -5205,7 +5222,9 @@
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"text/yaml"
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
@@ -5300,7 +5319,12 @@
|
||||
},
|
||||
{
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"in": "query",
|
||||
"name": "format",
|
||||
"type": "string"
|
||||
@@ -5319,6 +5343,13 @@
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "AlertingFileExport",
|
||||
@@ -5545,7 +5576,12 @@
|
||||
},
|
||||
{
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"in": "query",
|
||||
"name": "format",
|
||||
"type": "string"
|
||||
@@ -5566,7 +5602,9 @@
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"text/yaml"
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
@@ -5653,12 +5691,24 @@
|
||||
},
|
||||
{
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"in": "query",
|
||||
"name": "format",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "AlertingFileExport",
|
||||
@@ -5793,7 +5843,12 @@
|
||||
},
|
||||
{
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"in": "query",
|
||||
"name": "format",
|
||||
"type": "string"
|
||||
@@ -5806,6 +5861,13 @@
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "AlertingFileExport",
|
||||
@@ -5903,6 +5965,13 @@
|
||||
"/v1/provisioning/policies/export": {
|
||||
"get": {
|
||||
"operationId": "RouteGetPolicyTreeExport",
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "AlertingFileExport",
|
||||
|
||||
@@ -24,9 +24,12 @@ import (
|
||||
//
|
||||
// List rules in provisioning format
|
||||
//
|
||||
// Consumes:
|
||||
// Produces:
|
||||
// - application/json
|
||||
// - application/yaml
|
||||
// - application/terraform+hcl
|
||||
// - text/yaml
|
||||
// - text/hcl
|
||||
//
|
||||
// Responses:
|
||||
// 200: AlertingFileExport
|
||||
@@ -64,7 +67,13 @@ import (
|
||||
//
|
||||
// Consumes:
|
||||
// - application/json
|
||||
//
|
||||
// Produces:
|
||||
// - application/json
|
||||
// - application/yaml
|
||||
// - application/terraform+hcl
|
||||
// - text/yaml
|
||||
// - text/hcl
|
||||
//
|
||||
// Responses:
|
||||
// 200: AlertingFileExport
|
||||
|
||||
@@ -18,10 +18,11 @@ type ExportQueryParams struct {
|
||||
// default: false
|
||||
Download bool `json:"download"`
|
||||
|
||||
// Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.
|
||||
// Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.
|
||||
// in: query
|
||||
// required: false
|
||||
// default: yaml
|
||||
// enum: yaml,json,hcl
|
||||
Format string `json:"format"`
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,13 @@ import (
|
||||
//
|
||||
// Export all alert rules in provisioning file format.
|
||||
//
|
||||
// Produces:
|
||||
// - application/json
|
||||
// - application/yaml
|
||||
// - application/terraform+hcl
|
||||
// - text/yaml
|
||||
// - text/hcl
|
||||
//
|
||||
// Responses:
|
||||
// 200: AlertingFileExport
|
||||
// 404: description: Not found.
|
||||
@@ -36,7 +43,9 @@ import (
|
||||
// Produces:
|
||||
// - application/json
|
||||
// - application/yaml
|
||||
// - application/terraform+hcl
|
||||
// - text/yaml
|
||||
// - text/hcl
|
||||
//
|
||||
// Responses:
|
||||
// 200: AlertingFileExport
|
||||
@@ -184,7 +193,9 @@ type ProvisionedAlertRule struct {
|
||||
// Produces:
|
||||
// - application/json
|
||||
// - application/yaml
|
||||
// - application/terraform+hcl
|
||||
// - text/yaml
|
||||
// - text/hcl
|
||||
//
|
||||
// Responses:
|
||||
// 200: AlertingFileExport
|
||||
|
||||
@@ -15,6 +15,13 @@ import (
|
||||
//
|
||||
// Export all contact points in provisioning file format.
|
||||
//
|
||||
// Produces:
|
||||
// - application/json
|
||||
// - application/yaml
|
||||
// - application/terraform+hcl
|
||||
// - text/yaml
|
||||
// - text/hcl
|
||||
//
|
||||
// Responses:
|
||||
// 200: AlertingFileExport
|
||||
// 403: PermissionDenied
|
||||
|
||||
@@ -15,6 +15,13 @@ import (
|
||||
//
|
||||
// Export all mute timings in provisioning format.
|
||||
//
|
||||
// Produces:
|
||||
// - application/json
|
||||
// - application/yaml
|
||||
// - application/terraform+hcl
|
||||
// - text/yaml
|
||||
// - text/hcl
|
||||
//
|
||||
// Responses:
|
||||
// 200: AlertingFileExport
|
||||
// 403: PermissionDenied
|
||||
@@ -31,6 +38,13 @@ import (
|
||||
//
|
||||
// Export a mute timing in provisioning format.
|
||||
//
|
||||
// Produces:
|
||||
// - application/json
|
||||
// - application/yaml
|
||||
// - application/terraform+hcl
|
||||
// - text/yaml
|
||||
// - text/hcl
|
||||
//
|
||||
// Responses:
|
||||
// 200: AlertingFileExport
|
||||
// 403: PermissionDenied
|
||||
|
||||
@@ -37,6 +37,13 @@ import (
|
||||
//
|
||||
// Export the notification policy tree in provisioning file format.
|
||||
//
|
||||
// Produces:
|
||||
// - application/json
|
||||
// - application/yaml
|
||||
// - application/terraform+hcl
|
||||
// - text/yaml
|
||||
// - text/hcl
|
||||
//
|
||||
// Responses:
|
||||
// 200: AlertingFileExport
|
||||
// 404: NotFound
|
||||
|
||||
@@ -4600,7 +4600,6 @@
|
||||
"type": "object"
|
||||
},
|
||||
"gettableAlerts": {
|
||||
"description": "GettableAlerts gettable alerts",
|
||||
"items": {
|
||||
"$ref": "#/definitions/gettableAlert"
|
||||
},
|
||||
@@ -4656,12 +4655,14 @@
|
||||
"type": "object"
|
||||
},
|
||||
"gettableSilences": {
|
||||
"description": "GettableSilences gettable silences",
|
||||
"items": {
|
||||
"$ref": "#/definitions/gettableSilence"
|
||||
},
|
||||
"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",
|
||||
@@ -4842,6 +4843,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"receiver": {
|
||||
"description": "Receiver receiver",
|
||||
"properties": {
|
||||
"active": {
|
||||
"description": "active",
|
||||
@@ -6143,10 +6145,6 @@
|
||||
},
|
||||
"/ruler/grafana/api/v1/export/rules": {
|
||||
"get": {
|
||||
"consumes": [
|
||||
"application/json",
|
||||
"application/yaml"
|
||||
],
|
||||
"description": "List rules in provisioning format",
|
||||
"operationId": "RouteGetRulesForExport",
|
||||
"parameters": [
|
||||
@@ -6159,7 +6157,12 @@
|
||||
},
|
||||
{
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"in": "query",
|
||||
"name": "format",
|
||||
"type": "string"
|
||||
@@ -6186,6 +6189,13 @@
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "AlertingFileExport",
|
||||
@@ -6356,8 +6366,7 @@
|
||||
"/ruler/grafana/api/v1/rules/{Namespace}/export": {
|
||||
"post": {
|
||||
"consumes": [
|
||||
"application/json",
|
||||
"application/yaml"
|
||||
"application/json"
|
||||
],
|
||||
"description": "Converts submitted rule group to provisioning format",
|
||||
"operationId": "RoutePostRulesGroupForExport",
|
||||
@@ -6385,12 +6394,24 @@
|
||||
},
|
||||
{
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"in": "query",
|
||||
"name": "format",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "AlertingFileExport",
|
||||
@@ -7160,7 +7181,12 @@
|
||||
},
|
||||
{
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"in": "query",
|
||||
"name": "format",
|
||||
"type": "string"
|
||||
@@ -7187,6 +7213,13 @@
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "AlertingFileExport",
|
||||
@@ -7317,7 +7350,12 @@
|
||||
},
|
||||
{
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"in": "query",
|
||||
"name": "format",
|
||||
"type": "string"
|
||||
@@ -7333,7 +7371,9 @@
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"text/yaml"
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
@@ -7428,7 +7468,12 @@
|
||||
},
|
||||
{
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"in": "query",
|
||||
"name": "format",
|
||||
"type": "string"
|
||||
@@ -7447,6 +7492,13 @@
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "AlertingFileExport",
|
||||
@@ -7673,7 +7725,12 @@
|
||||
},
|
||||
{
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"in": "query",
|
||||
"name": "format",
|
||||
"type": "string"
|
||||
@@ -7694,7 +7751,9 @@
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"text/yaml"
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
@@ -7781,12 +7840,24 @@
|
||||
},
|
||||
{
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"in": "query",
|
||||
"name": "format",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "AlertingFileExport",
|
||||
@@ -7921,7 +7992,12 @@
|
||||
},
|
||||
{
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"in": "query",
|
||||
"name": "format",
|
||||
"type": "string"
|
||||
@@ -7934,6 +8010,13 @@
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "AlertingFileExport",
|
||||
@@ -8031,6 +8114,13 @@
|
||||
"/v1/provisioning/policies/export": {
|
||||
"get": {
|
||||
"operationId": "RouteGetPolicyTreeExport",
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "AlertingFileExport",
|
||||
|
||||
@@ -1200,9 +1200,12 @@
|
||||
"/ruler/grafana/api/v1/export/rules": {
|
||||
"get": {
|
||||
"description": "List rules in provisioning format",
|
||||
"consumes": [
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml"
|
||||
"application/yaml",
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"tags": [
|
||||
"ruler"
|
||||
@@ -1217,9 +1220,14 @@
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"type": "string",
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"name": "format",
|
||||
"in": "query"
|
||||
},
|
||||
@@ -1413,8 +1421,14 @@
|
||||
"post": {
|
||||
"description": "Converts submitted rule group to provisioning format",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml"
|
||||
"application/yaml",
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"tags": [
|
||||
"ruler"
|
||||
@@ -1443,9 +1457,14 @@
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"type": "string",
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"name": "format",
|
||||
"in": "query"
|
||||
}
|
||||
@@ -2207,6 +2226,13 @@
|
||||
},
|
||||
"/v1/provisioning/alert-rules/export": {
|
||||
"get": {
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"tags": [
|
||||
"provisioning",
|
||||
"stable"
|
||||
@@ -2222,9 +2248,14 @@
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"type": "string",
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"name": "format",
|
||||
"in": "query"
|
||||
},
|
||||
@@ -2371,7 +2402,9 @@
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"text/yaml"
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"tags": [
|
||||
"provisioning",
|
||||
@@ -2388,9 +2421,14 @@
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"type": "string",
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"name": "format",
|
||||
"in": "query"
|
||||
},
|
||||
@@ -2482,6 +2520,13 @@
|
||||
},
|
||||
"/v1/provisioning/contact-points/export": {
|
||||
"get": {
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"tags": [
|
||||
"provisioning",
|
||||
"stable"
|
||||
@@ -2497,9 +2542,14 @@
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"type": "string",
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"name": "format",
|
||||
"in": "query"
|
||||
},
|
||||
@@ -2736,7 +2786,9 @@
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"text/yaml"
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"tags": [
|
||||
"provisioning",
|
||||
@@ -2753,9 +2805,14 @@
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"type": "string",
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"name": "format",
|
||||
"in": "query"
|
||||
},
|
||||
@@ -2844,6 +2901,13 @@
|
||||
},
|
||||
"/v1/provisioning/mute-timings/export": {
|
||||
"get": {
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"tags": [
|
||||
"provisioning",
|
||||
"stable"
|
||||
@@ -2859,9 +2923,14 @@
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"type": "string",
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"name": "format",
|
||||
"in": "query"
|
||||
}
|
||||
@@ -2988,6 +3057,13 @@
|
||||
},
|
||||
"/v1/provisioning/mute-timings/{name}/export": {
|
||||
"get": {
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"tags": [
|
||||
"provisioning",
|
||||
"stable"
|
||||
@@ -3003,9 +3079,14 @@
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"enum": [
|
||||
"yaml",
|
||||
"json",
|
||||
"hcl"
|
||||
],
|
||||
"type": "string",
|
||||
"default": "yaml",
|
||||
"description": "Format of the downloaded file, either yaml or json. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"description": "Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the query parameter will take precedence.",
|
||||
"name": "format",
|
||||
"in": "query"
|
||||
},
|
||||
@@ -3112,6 +3193,13 @@
|
||||
},
|
||||
"/v1/provisioning/policies/export": {
|
||||
"get": {
|
||||
"produces": [
|
||||
"application/json",
|
||||
"application/yaml",
|
||||
"application/terraform+hcl",
|
||||
"text/yaml",
|
||||
"text/hcl"
|
||||
],
|
||||
"tags": [
|
||||
"provisioning",
|
||||
"stable"
|
||||
@@ -7807,6 +7895,7 @@
|
||||
}
|
||||
},
|
||||
"alertGroup": {
|
||||
"description": "AlertGroup alert group",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"alerts",
|
||||
@@ -7831,7 +7920,6 @@
|
||||
"$ref": "#/definitions/alertGroup"
|
||||
},
|
||||
"alertGroups": {
|
||||
"description": "AlertGroups alert groups",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/alertGroup"
|
||||
@@ -7937,7 +8025,6 @@
|
||||
}
|
||||
},
|
||||
"gettableAlert": {
|
||||
"description": "GettableAlert gettable alert",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"labels",
|
||||
@@ -7994,7 +8081,6 @@
|
||||
"$ref": "#/definitions/gettableAlert"
|
||||
},
|
||||
"gettableAlerts": {
|
||||
"description": "GettableAlerts gettable alerts",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/gettableAlert"
|
||||
@@ -8002,6 +8088,7 @@
|
||||
"$ref": "#/definitions/gettableAlerts"
|
||||
},
|
||||
"gettableSilence": {
|
||||
"description": "GettableSilence gettable silence",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"comment",
|
||||
@@ -8051,6 +8138,7 @@
|
||||
"$ref": "#/definitions/gettableSilence"
|
||||
},
|
||||
"gettableSilences": {
|
||||
"description": "GettableSilences gettable silences",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/gettableSilence"
|
||||
|
||||
Reference in New Issue
Block a user