mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Fix go-swagger extraction and several embedded types from Alertmanager in Swagger docs (#88879)
Drop redundant swagger model comments
This commit is contained in:
parent
40931b6da6
commit
f1dc63565e
@ -982,7 +982,9 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"EvalQueriesResponse": {},
|
||||
"EvalQueriesResponse": {
|
||||
"type": "object"
|
||||
},
|
||||
"ExplorePanelsState": {
|
||||
"description": "This is an object constructed with the keys as the values of the enum VisType and the value being a bag of properties"
|
||||
},
|
||||
@ -3686,6 +3688,20 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"SilenceMetadata": {
|
||||
"properties": {
|
||||
"folder_uid": {
|
||||
"type": "string"
|
||||
},
|
||||
"rule_title": {
|
||||
"type": "string"
|
||||
},
|
||||
"rule_uid": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"SlackAction": {
|
||||
"description": "See https://api.slack.com/docs/message-attachments#action_fields and https://api.slack.com/docs/message-buttons\nfor more information.",
|
||||
"properties": {
|
||||
@ -4225,6 +4241,7 @@
|
||||
"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\nThe Host field contains the host and port subcomponents of the URL.\nWhen the port is present, it is separated from the host with a colon.\nWhen the host is an IPv6 address, it must be enclosed in square brackets:\n\"[fe80::1]:80\". The [net.JoinHostPort] function combines a host and port\ninto a string suitable for the Host field, adding square brackets to\nthe host when necessary.\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 [URL.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"
|
||||
@ -4260,7 +4277,7 @@
|
||||
"$ref": "#/definitions/Userinfo"
|
||||
}
|
||||
},
|
||||
"title": "URL is a custom URL type that allows validation at configuration load time.",
|
||||
"title": "A URL represents a parsed URL (technically, a URI reference).",
|
||||
"type": "object"
|
||||
},
|
||||
"UpdateRuleGroupResponse": {
|
||||
@ -4466,6 +4483,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"alertGroup": {
|
||||
"description": "AlertGroup alert group",
|
||||
"properties": {
|
||||
"alerts": {
|
||||
"description": "alerts",
|
||||
@ -4490,7 +4508,8 @@
|
||||
},
|
||||
"alertGroups": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/alertGroup"
|
||||
"$ref": "#/definitions/alertGroup",
|
||||
"type": "object"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
@ -4593,6 +4612,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"gettableAlert": {
|
||||
"description": "GettableAlert gettable alert",
|
||||
"properties": {
|
||||
"annotations": {
|
||||
"$ref": "#/definitions/labelSet"
|
||||
@ -4650,7 +4670,76 @@
|
||||
"gettableAlerts": {
|
||||
"description": "GettableAlerts gettable alerts",
|
||||
"items": {
|
||||
"$ref": "#/definitions/gettableAlert"
|
||||
"$ref": "#/definitions/gettableAlert",
|
||||
"type": "object"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"gettableGrafanaSilence": {
|
||||
"properties": {
|
||||
"accessControl": {
|
||||
"additionalProperties": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"example": {
|
||||
"create": false,
|
||||
"read": true,
|
||||
"write": false
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"comment": {
|
||||
"description": "comment",
|
||||
"type": "string"
|
||||
},
|
||||
"createdBy": {
|
||||
"description": "created by",
|
||||
"type": "string"
|
||||
},
|
||||
"endsAt": {
|
||||
"description": "ends at",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"description": "id",
|
||||
"type": "string"
|
||||
},
|
||||
"matchers": {
|
||||
"$ref": "#/definitions/matchers"
|
||||
},
|
||||
"metadata": {
|
||||
"$ref": "#/definitions/SilenceMetadata"
|
||||
},
|
||||
"startsAt": {
|
||||
"description": "starts at",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/definitions/silenceStatus"
|
||||
},
|
||||
"updatedAt": {
|
||||
"description": "updated at",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"comment",
|
||||
"createdBy",
|
||||
"endsAt",
|
||||
"matchers",
|
||||
"startsAt",
|
||||
"id",
|
||||
"status",
|
||||
"updatedAt"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"gettableGrafanaSilences": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/gettableGrafanaSilence"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
@ -4704,9 +4793,9 @@
|
||||
"type": "object"
|
||||
},
|
||||
"gettableSilences": {
|
||||
"description": "GettableSilences gettable silences",
|
||||
"items": {
|
||||
"$ref": "#/definitions/gettableSilence"
|
||||
"$ref": "#/definitions/gettableSilence",
|
||||
"type": "object"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
@ -4855,6 +4944,7 @@
|
||||
"type": "array"
|
||||
},
|
||||
"postableSilence": {
|
||||
"description": "PostableSilence postable silence",
|
||||
"properties": {
|
||||
"comment": {
|
||||
"description": "comment",
|
||||
@ -4892,6 +4982,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"receiver": {
|
||||
"description": "Receiver receiver",
|
||||
"properties": {
|
||||
"active": {
|
||||
"description": "active",
|
||||
|
@ -473,7 +473,6 @@ func NewGettableStatus(cfg *PostableApiAlertingConfig) *GettableStatus {
|
||||
}
|
||||
}
|
||||
|
||||
// swagger:model postableSilence
|
||||
type PostableSilence = amv2.PostableSilence
|
||||
|
||||
// swagger:model postSilencesOKBody
|
||||
@ -485,7 +484,6 @@ type PostSilencesOKBody struct { // vendored from "github.com/prometheus/alertma
|
||||
// swagger:model gettableSilences
|
||||
type GettableSilences = amv2.GettableSilences
|
||||
|
||||
// swagger:model gettableSilence
|
||||
type GettableSilence = amv2.GettableSilence
|
||||
|
||||
// swagger:model gettableGrafanaSilence
|
||||
@ -540,16 +538,13 @@ type GettableGrafanaSilences []*GettableGrafanaSilence
|
||||
// swagger:model gettableAlerts
|
||||
type GettableAlerts = amv2.GettableAlerts
|
||||
|
||||
// swagger:model gettableAlert
|
||||
type GettableAlert = amv2.GettableAlert
|
||||
|
||||
// swagger:model alertGroups
|
||||
type AlertGroups = amv2.AlertGroups
|
||||
|
||||
// swagger:model alertGroup
|
||||
type AlertGroup = amv2.AlertGroup
|
||||
|
||||
// swagger:model receiver
|
||||
type Receiver = amv2.Receiver
|
||||
|
||||
// swagger:response receiversResponse
|
||||
@ -558,7 +553,6 @@ type ReceiversResponse struct {
|
||||
Body []amv2.Receiver
|
||||
}
|
||||
|
||||
// swagger:model integration
|
||||
type Integration = amv2.Integration
|
||||
|
||||
// swagger:parameters RouteGetAMAlerts RouteGetAMAlertGroups RouteGetGrafanaAMAlerts RouteGetGrafanaAMAlertGroups
|
||||
|
@ -3685,6 +3685,20 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"SilenceMetadata": {
|
||||
"properties": {
|
||||
"folder_uid": {
|
||||
"type": "string"
|
||||
},
|
||||
"rule_title": {
|
||||
"type": "string"
|
||||
},
|
||||
"rule_uid": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"SlackAction": {
|
||||
"description": "See https://api.slack.com/docs/message-attachments#action_fields and https://api.slack.com/docs/message-buttons\nfor more information.",
|
||||
"properties": {
|
||||
@ -4224,7 +4238,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\nThe Host field contains the host and port subcomponents of the URL.\nWhen the port is present, it is separated from the host with a colon.\nWhen the host is an IPv6 address, it must be enclosed in square brackets:\n\"[fe80::1]:80\". The [net.JoinHostPort] function combines a host and port\ninto a string suitable for the Host field, adding square brackets to\nthe host when necessary.\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 [URL.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"
|
||||
@ -4260,7 +4273,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": {
|
||||
@ -4595,6 +4608,49 @@
|
||||
"type": "object"
|
||||
},
|
||||
"gettableAlert": {
|
||||
"description": "GettableAlert gettable alert",
|
||||
"properties": {
|
||||
"annotations": {
|
||||
"$ref": "#/definitions/labelSet"
|
||||
},
|
||||
"endsAt": {
|
||||
"description": "ends at",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"fingerprint": {
|
||||
"description": "fingerprint",
|
||||
"type": "string"
|
||||
},
|
||||
"generatorURL": {
|
||||
"description": "generator URL\nFormat: uri",
|
||||
"format": "uri",
|
||||
"type": "string"
|
||||
},
|
||||
"labels": {
|
||||
"$ref": "#/definitions/labelSet"
|
||||
},
|
||||
"receivers": {
|
||||
"description": "receivers",
|
||||
"items": {
|
||||
"$ref": "#/definitions/receiver"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"startsAt": {
|
||||
"description": "starts at",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/definitions/alertStatus"
|
||||
},
|
||||
"updatedAt": {
|
||||
"description": "updated at",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"labels",
|
||||
"annotations",
|
||||
@ -4614,7 +4670,111 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"gettableGrafanaSilence": {
|
||||
"properties": {
|
||||
"accessControl": {
|
||||
"additionalProperties": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"example": {
|
||||
"create": false,
|
||||
"read": true,
|
||||
"write": false
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"comment": {
|
||||
"description": "comment",
|
||||
"type": "string"
|
||||
},
|
||||
"createdBy": {
|
||||
"description": "created by",
|
||||
"type": "string"
|
||||
},
|
||||
"endsAt": {
|
||||
"description": "ends at",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"description": "id",
|
||||
"type": "string"
|
||||
},
|
||||
"matchers": {
|
||||
"$ref": "#/definitions/matchers"
|
||||
},
|
||||
"metadata": {
|
||||
"$ref": "#/definitions/SilenceMetadata"
|
||||
},
|
||||
"startsAt": {
|
||||
"description": "starts at",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/definitions/silenceStatus"
|
||||
},
|
||||
"updatedAt": {
|
||||
"description": "updated at",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"comment",
|
||||
"createdBy",
|
||||
"endsAt",
|
||||
"matchers",
|
||||
"startsAt",
|
||||
"id",
|
||||
"status",
|
||||
"updatedAt"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"gettableGrafanaSilences": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/gettableGrafanaSilence"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"gettableSilence": {
|
||||
"description": "GettableSilence gettable silence",
|
||||
"properties": {
|
||||
"comment": {
|
||||
"description": "comment",
|
||||
"type": "string"
|
||||
},
|
||||
"createdBy": {
|
||||
"description": "created by",
|
||||
"type": "string"
|
||||
},
|
||||
"endsAt": {
|
||||
"description": "ends at",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"description": "id",
|
||||
"type": "string"
|
||||
},
|
||||
"matchers": {
|
||||
"$ref": "#/definitions/matchers"
|
||||
},
|
||||
"startsAt": {
|
||||
"description": "starts at",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/definitions/silenceStatus"
|
||||
},
|
||||
"updatedAt": {
|
||||
"description": "updated at",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"comment",
|
||||
"createdBy",
|
||||
@ -4628,6 +4788,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"gettableSilences": {
|
||||
"description": "GettableSilences gettable silences",
|
||||
"items": {
|
||||
"$ref": "#/definitions/gettableSilence",
|
||||
"type": "object"
|
||||
@ -5102,9 +5263,9 @@
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "gettableSilence",
|
||||
"description": "gettableGrafanaSilence",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/gettableSilence"
|
||||
"$ref": "#/definitions/gettableGrafanaSilence"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
@ -5131,13 +5292,25 @@
|
||||
},
|
||||
"name": "filter",
|
||||
"type": "array"
|
||||
},
|
||||
{
|
||||
"description": "Return rule metadata with silence.",
|
||||
"in": "query",
|
||||
"name": "ruleMetadata",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"description": "Return access control metadata with silence.",
|
||||
"in": "query",
|
||||
"name": "accesscontrol",
|
||||
"type": "boolean"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "gettableSilences",
|
||||
"description": "gettableGrafanaSilences",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/gettableSilences"
|
||||
"$ref": "#/definitions/gettableGrafanaSilences"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
@ -5757,6 +5930,18 @@
|
||||
"name": "filter",
|
||||
"type": "array"
|
||||
},
|
||||
{
|
||||
"description": "Return rule metadata with silence.",
|
||||
"in": "query",
|
||||
"name": "ruleMetadata",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"description": "Return access control metadata with silence.",
|
||||
"in": "query",
|
||||
"name": "accesscontrol",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"description": "DatasoureUID should be the datasource UID identifier",
|
||||
"in": "path",
|
||||
|
@ -156,9 +156,9 @@
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "gettableSilence",
|
||||
"description": "gettableGrafanaSilence",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/gettableSilence"
|
||||
"$ref": "#/definitions/gettableGrafanaSilence"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
@ -214,13 +214,25 @@
|
||||
},
|
||||
"name": "filter",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Return rule metadata with silence.",
|
||||
"name": "ruleMetadata",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Return access control metadata with silence.",
|
||||
"name": "accesscontrol",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "gettableSilences",
|
||||
"description": "gettableGrafanaSilences",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/gettableSilences"
|
||||
"$ref": "#/definitions/gettableGrafanaSilences"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
@ -840,6 +852,18 @@
|
||||
"name": "filter",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Return rule metadata with silence.",
|
||||
"name": "ruleMetadata",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Return access control metadata with silence.",
|
||||
"name": "accesscontrol",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "DatasoureUID should be the datasource UID identifier",
|
||||
@ -7215,6 +7239,20 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"SilenceMetadata": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"folder_uid": {
|
||||
"type": "string"
|
||||
},
|
||||
"rule_title": {
|
||||
"type": "string"
|
||||
},
|
||||
"rule_uid": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"SlackAction": {
|
||||
"description": "See https://api.slack.com/docs/message-attachments#action_fields and https://api.slack.com/docs/message-buttons\nfor more information.",
|
||||
"type": "object",
|
||||
@ -7754,9 +7792,8 @@
|
||||
}
|
||||
},
|
||||
"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\nThe Host field contains the host and port subcomponents of the URL.\nWhen the port is present, it is separated from the host with a colon.\nWhen the host is an IPv6 address, it must be enclosed in square brackets:\n\"[fe80::1]:80\". The [net.JoinHostPort] function combines a host and port\ninto a string suitable for the Host field, adding square brackets to\nthe host when necessary.\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 [URL.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.",
|
||||
"type": "object",
|
||||
"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.",
|
||||
"properties": {
|
||||
"ForceQuery": {
|
||||
"type": "boolean"
|
||||
@ -8020,7 +8057,6 @@
|
||||
}
|
||||
},
|
||||
"alertGroups": {
|
||||
"description": "AlertGroups alert groups",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
@ -8126,6 +8162,7 @@
|
||||
}
|
||||
},
|
||||
"gettableAlert": {
|
||||
"description": "GettableAlert gettable alert",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"labels",
|
||||
@ -8136,7 +8173,49 @@
|
||||
"startsAt",
|
||||
"status",
|
||||
"updatedAt"
|
||||
]
|
||||
],
|
||||
"properties": {
|
||||
"annotations": {
|
||||
"$ref": "#/definitions/labelSet"
|
||||
},
|
||||
"endsAt": {
|
||||
"description": "ends at",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"fingerprint": {
|
||||
"description": "fingerprint",
|
||||
"type": "string"
|
||||
},
|
||||
"generatorURL": {
|
||||
"description": "generator URL\nFormat: uri",
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
},
|
||||
"labels": {
|
||||
"$ref": "#/definitions/labelSet"
|
||||
},
|
||||
"receivers": {
|
||||
"description": "receivers",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/receiver"
|
||||
}
|
||||
},
|
||||
"startsAt": {
|
||||
"description": "starts at",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/definitions/alertStatus"
|
||||
},
|
||||
"updatedAt": {
|
||||
"description": "updated at",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"gettableAlerts": {
|
||||
"type": "array",
|
||||
@ -8145,6 +8224,74 @@
|
||||
"$ref": "#/definitions/gettableAlert"
|
||||
}
|
||||
},
|
||||
"gettableGrafanaSilence": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"comment",
|
||||
"createdBy",
|
||||
"endsAt",
|
||||
"matchers",
|
||||
"startsAt",
|
||||
"id",
|
||||
"status",
|
||||
"updatedAt"
|
||||
],
|
||||
"properties": {
|
||||
"accessControl": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"example": {
|
||||
"create": false,
|
||||
"read": true,
|
||||
"write": false
|
||||
}
|
||||
},
|
||||
"comment": {
|
||||
"description": "comment",
|
||||
"type": "string"
|
||||
},
|
||||
"createdBy": {
|
||||
"description": "created by",
|
||||
"type": "string"
|
||||
},
|
||||
"endsAt": {
|
||||
"description": "ends at",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"id": {
|
||||
"description": "id",
|
||||
"type": "string"
|
||||
},
|
||||
"matchers": {
|
||||
"$ref": "#/definitions/matchers"
|
||||
},
|
||||
"metadata": {
|
||||
"$ref": "#/definitions/SilenceMetadata"
|
||||
},
|
||||
"startsAt": {
|
||||
"description": "starts at",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/definitions/silenceStatus"
|
||||
},
|
||||
"updatedAt": {
|
||||
"description": "updated at",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"gettableGrafanaSilences": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/gettableGrafanaSilence"
|
||||
}
|
||||
},
|
||||
"gettableSilence": {
|
||||
"description": "GettableSilence gettable silence",
|
||||
"type": "object",
|
||||
@ -8195,6 +8342,7 @@
|
||||
}
|
||||
},
|
||||
"gettableSilences": {
|
||||
"description": "GettableSilences gettable silences",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
@ -8384,12 +8532,30 @@
|
||||
}
|
||||
},
|
||||
"receiver": {
|
||||
"description": "Receiver receiver",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"active",
|
||||
"integrations",
|
||||
"name"
|
||||
]
|
||||
],
|
||||
"properties": {
|
||||
"active": {
|
||||
"description": "active",
|
||||
"type": "boolean"
|
||||
},
|
||||
"integrations": {
|
||||
"description": "integrations",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/integration"
|
||||
}
|
||||
},
|
||||
"name": {
|
||||
"description": "name",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"silence": {
|
||||
"description": "Silence silence",
|
||||
|
@ -14717,7 +14717,9 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"EvalQueriesResponse": {},
|
||||
"EvalQueriesResponse": {
|
||||
"type": "object"
|
||||
},
|
||||
"ExplorePanelsState": {
|
||||
"description": "This is an object constructed with the keys as the values of the enum VisType and the value being a bag of properties"
|
||||
},
|
||||
@ -19762,6 +19764,20 @@
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"SilenceMetadata": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"folder_uid": {
|
||||
"type": "string"
|
||||
},
|
||||
"rule_title": {
|
||||
"type": "string"
|
||||
},
|
||||
"rule_uid": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"SlackAction": {
|
||||
"description": "See https://api.slack.com/docs/message-attachments#action_fields and https://api.slack.com/docs/message-buttons\nfor more information.",
|
||||
"type": "object",
|
||||
@ -21520,6 +21536,7 @@
|
||||
}
|
||||
},
|
||||
"alertGroup": {
|
||||
"description": "AlertGroup alert group",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"alerts",
|
||||
@ -21545,6 +21562,7 @@
|
||||
"alertGroups": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/alertGroup"
|
||||
}
|
||||
},
|
||||
@ -21675,6 +21693,7 @@
|
||||
}
|
||||
},
|
||||
"gettableAlert": {
|
||||
"description": "GettableAlert gettable alert",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"labels",
|
||||
@ -21733,9 +21752,78 @@
|
||||
"description": "GettableAlerts gettable alerts",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/gettableAlert"
|
||||
}
|
||||
},
|
||||
"gettableGrafanaSilence": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"comment",
|
||||
"createdBy",
|
||||
"endsAt",
|
||||
"matchers",
|
||||
"startsAt",
|
||||
"id",
|
||||
"status",
|
||||
"updatedAt"
|
||||
],
|
||||
"properties": {
|
||||
"accessControl": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"example": {
|
||||
"create": false,
|
||||
"read": true,
|
||||
"write": false
|
||||
}
|
||||
},
|
||||
"comment": {
|
||||
"description": "comment",
|
||||
"type": "string"
|
||||
},
|
||||
"createdBy": {
|
||||
"description": "created by",
|
||||
"type": "string"
|
||||
},
|
||||
"endsAt": {
|
||||
"description": "ends at",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"id": {
|
||||
"description": "id",
|
||||
"type": "string"
|
||||
},
|
||||
"matchers": {
|
||||
"$ref": "#/definitions/matchers"
|
||||
},
|
||||
"metadata": {
|
||||
"$ref": "#/definitions/SilenceMetadata"
|
||||
},
|
||||
"startsAt": {
|
||||
"description": "starts at",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/definitions/silenceStatus"
|
||||
},
|
||||
"updatedAt": {
|
||||
"description": "updated at",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"gettableGrafanaSilences": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/gettableGrafanaSilence"
|
||||
}
|
||||
},
|
||||
"gettableSilence": {
|
||||
"description": "GettableSilence gettable silence",
|
||||
"type": "object",
|
||||
@ -21786,9 +21874,9 @@
|
||||
}
|
||||
},
|
||||
"gettableSilences": {
|
||||
"description": "GettableSilences gettable silences",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/gettableSilence"
|
||||
}
|
||||
},
|
||||
@ -21937,6 +22025,7 @@
|
||||
}
|
||||
},
|
||||
"postableSilence": {
|
||||
"description": "PostableSilence postable silence",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"comment",
|
||||
@ -22002,6 +22091,7 @@
|
||||
}
|
||||
},
|
||||
"receiver": {
|
||||
"description": "Receiver receiver",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"active",
|
||||
|
@ -5096,7 +5096,9 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"EvalQueriesResponse": {},
|
||||
"EvalQueriesResponse": {
|
||||
"type": "object"
|
||||
},
|
||||
"ExplorePanelsState": {
|
||||
"description": "This is an object constructed with the keys as the values of the enum VisType and the value being a bag of properties"
|
||||
},
|
||||
@ -10140,6 +10142,20 @@
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
},
|
||||
"SilenceMetadata": {
|
||||
"properties": {
|
||||
"folder_uid": {
|
||||
"type": "string"
|
||||
},
|
||||
"rule_title": {
|
||||
"type": "string"
|
||||
},
|
||||
"rule_uid": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"SlackAction": {
|
||||
"description": "See https://api.slack.com/docs/message-attachments#action_fields and https://api.slack.com/docs/message-buttons\nfor more information.",
|
||||
"properties": {
|
||||
@ -11898,6 +11914,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"alertGroup": {
|
||||
"description": "AlertGroup alert group",
|
||||
"properties": {
|
||||
"alerts": {
|
||||
"description": "alerts",
|
||||
@ -12053,6 +12070,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"gettableAlert": {
|
||||
"description": "GettableAlert gettable alert",
|
||||
"properties": {
|
||||
"annotations": {
|
||||
"$ref": "#/components/schemas/labelSet"
|
||||
@ -12114,6 +12132,74 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"gettableGrafanaSilence": {
|
||||
"properties": {
|
||||
"accessControl": {
|
||||
"additionalProperties": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"example": {
|
||||
"create": false,
|
||||
"read": true,
|
||||
"write": false
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"comment": {
|
||||
"description": "comment",
|
||||
"type": "string"
|
||||
},
|
||||
"createdBy": {
|
||||
"description": "created by",
|
||||
"type": "string"
|
||||
},
|
||||
"endsAt": {
|
||||
"description": "ends at",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"description": "id",
|
||||
"type": "string"
|
||||
},
|
||||
"matchers": {
|
||||
"$ref": "#/components/schemas/matchers"
|
||||
},
|
||||
"metadata": {
|
||||
"$ref": "#/components/schemas/SilenceMetadata"
|
||||
},
|
||||
"startsAt": {
|
||||
"description": "starts at",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/silenceStatus"
|
||||
},
|
||||
"updatedAt": {
|
||||
"description": "updated at",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"comment",
|
||||
"createdBy",
|
||||
"endsAt",
|
||||
"matchers",
|
||||
"startsAt",
|
||||
"id",
|
||||
"status",
|
||||
"updatedAt"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"gettableGrafanaSilences": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/gettableGrafanaSilence"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"gettableSilence": {
|
||||
"description": "GettableSilence gettable silence",
|
||||
"properties": {
|
||||
@ -12164,7 +12250,6 @@
|
||||
"type": "object"
|
||||
},
|
||||
"gettableSilences": {
|
||||
"description": "GettableSilences gettable silences",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/gettableSilence"
|
||||
},
|
||||
@ -12315,6 +12400,7 @@
|
||||
"type": "array"
|
||||
},
|
||||
"postableSilence": {
|
||||
"description": "PostableSilence postable silence",
|
||||
"properties": {
|
||||
"comment": {
|
||||
"description": "comment",
|
||||
@ -12380,6 +12466,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"receiver": {
|
||||
"description": "Receiver receiver",
|
||||
"properties": {
|
||||
"active": {
|
||||
"description": "active",
|
||||
|
Loading…
Reference in New Issue
Block a user