mirror of
https://github.com/grafana/grafana.git
synced 2025-01-08 15:13:30 -06:00
Alerting: Update State history API Open API documentation (#89795)
This commit is contained in:
parent
f4c8a9ac1f
commit
09e10ae9e0
@ -61,8 +61,8 @@ fix:
|
||||
goimports -w -v $(GENERATED_GO_MATCHERS)
|
||||
|
||||
clean: clean-go
|
||||
rm spec.json
|
||||
rm spec-stable.json
|
||||
rm -f spec.json
|
||||
rm -f spec-stable.json
|
||||
|
||||
clean-go:
|
||||
rm -rf ./go
|
||||
|
@ -14,10 +14,10 @@
|
||||
"type": "string"
|
||||
},
|
||||
"annotations": {
|
||||
"$ref": "#/definitions/overrideLabels"
|
||||
"$ref": "#/definitions/Labels"
|
||||
},
|
||||
"labels": {
|
||||
"$ref": "#/definitions/overrideLabels"
|
||||
"$ref": "#/definitions/Labels"
|
||||
},
|
||||
"state": {
|
||||
"type": "string"
|
||||
@ -430,7 +430,7 @@
|
||||
"type": "array"
|
||||
},
|
||||
"annotations": {
|
||||
"$ref": "#/definitions/overrideLabels"
|
||||
"$ref": "#/definitions/Labels"
|
||||
},
|
||||
"duration": {
|
||||
"format": "double",
|
||||
@ -444,7 +444,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"labels": {
|
||||
"$ref": "#/definitions/overrideLabels"
|
||||
"$ref": "#/definitions/Labels"
|
||||
},
|
||||
"lastError": {
|
||||
"type": "string"
|
||||
@ -3463,7 +3463,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"labels": {
|
||||
"$ref": "#/definitions/overrideLabels"
|
||||
"$ref": "#/definitions/Labels"
|
||||
},
|
||||
"lastError": {
|
||||
"type": "string"
|
||||
@ -4237,7 +4237,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"
|
||||
@ -4273,7 +4272,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": {
|
||||
@ -4738,31 +4737,6 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"gettableGrafanaSilence": {
|
||||
"properties": {
|
||||
"accessControl": {
|
||||
"additionalProperties": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"example": {
|
||||
"create": false,
|
||||
"read": true,
|
||||
"write": false
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"metadata": {
|
||||
"$ref": "#/definitions/SilenceMetadata"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"gettableGrafanaSilences": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/gettableGrafanaSilence"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"gettableSilence": {
|
||||
"description": "GettableSilence gettable silence",
|
||||
"properties": {
|
||||
@ -4891,14 +4865,6 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"overrideLabels": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "The custom marshaling for labels.Labels ends up doing this anyways.",
|
||||
"title": "override the labels type with a map for generation.",
|
||||
"type": "object"
|
||||
},
|
||||
"peerStatus": {
|
||||
"description": "PeerStatus peer status",
|
||||
"properties": {
|
||||
@ -6345,7 +6311,7 @@
|
||||
"description": "",
|
||||
"schema": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/receiver"
|
||||
"$ref": "#/definitions/Receiver"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
|
@ -6,14 +6,48 @@ import "github.com/grafana/grafana-plugin-sdk-go/data"
|
||||
//
|
||||
// Query state history.
|
||||
//
|
||||
// Allows to query alerting state history.
|
||||
// In addition to defined query parameters it accepts filter by labels. The query parameter name must start with 'labels_'
|
||||
// Example: /v1/rules/history?labels_myKey1=myValue1&labels_myKey2=myValue2
|
||||
//
|
||||
// Produces:
|
||||
// - application/json
|
||||
//
|
||||
// Responses:
|
||||
// 200: StateHistory
|
||||
// 404: NotFound
|
||||
// 403: ForbiddenError
|
||||
// 500: Failure
|
||||
|
||||
// swagger:response StateHistory
|
||||
type StateHistory struct {
|
||||
// in:body
|
||||
Results *data.Frame `json:"results"`
|
||||
}
|
||||
|
||||
// StateHistoryParams is the struct used as parameters for the RouteGetStateHistory endpoint.
|
||||
//
|
||||
// swagger:parameters RouteGetStateHistory
|
||||
type StateHistoryParams struct {
|
||||
// The timestamp of the start point of the time range the history is obtained.
|
||||
// in:query
|
||||
// required: false
|
||||
From int64 `json:"from"`
|
||||
// The timestamp of the end point of the time range the history is obtained.
|
||||
// in:query
|
||||
// required: false
|
||||
To int64 `json:"to"`
|
||||
// Limits the number of records that needs to be returned.
|
||||
// in:query
|
||||
// required: false
|
||||
Limit int `json:"limit"`
|
||||
// Filter by rule UID. Required the state history is configured to use annotations for storage.
|
||||
// in:query
|
||||
// required: false
|
||||
RuleUID string `json:"ruleUID"`
|
||||
// Filter by rules that are or were assigned to the specific dashboard.
|
||||
// required: false
|
||||
DashboardUID string
|
||||
// Filter by dashboard's panel ID. Requires Dashboard UID to be specified.
|
||||
PanelID int64
|
||||
}
|
||||
|
@ -14,10 +14,10 @@
|
||||
"type": "string"
|
||||
},
|
||||
"annotations": {
|
||||
"$ref": "#/definitions/overrideLabels"
|
||||
"$ref": "#/definitions/Labels"
|
||||
},
|
||||
"labels": {
|
||||
"$ref": "#/definitions/overrideLabels"
|
||||
"$ref": "#/definitions/Labels"
|
||||
},
|
||||
"state": {
|
||||
"type": "string"
|
||||
@ -430,7 +430,7 @@
|
||||
"type": "array"
|
||||
},
|
||||
"annotations": {
|
||||
"$ref": "#/definitions/overrideLabels"
|
||||
"$ref": "#/definitions/Labels"
|
||||
},
|
||||
"duration": {
|
||||
"format": "double",
|
||||
@ -444,7 +444,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"labels": {
|
||||
"$ref": "#/definitions/overrideLabels"
|
||||
"$ref": "#/definitions/Labels"
|
||||
},
|
||||
"lastError": {
|
||||
"type": "string"
|
||||
@ -1715,6 +1715,9 @@
|
||||
"$ref": "#/definitions/TimeIntervalItem"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"version": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@ -3460,7 +3463,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"labels": {
|
||||
"$ref": "#/definitions/overrideLabels"
|
||||
"$ref": "#/definitions/Labels"
|
||||
},
|
||||
"lastError": {
|
||||
"type": "string"
|
||||
@ -4234,6 +4237,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"
|
||||
@ -4269,7 +4273,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": {
|
||||
@ -4661,6 +4665,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"gettableAlerts": {
|
||||
"description": "GettableAlerts gettable alerts",
|
||||
"items": {
|
||||
"$ref": "#/definitions/gettableAlert",
|
||||
"type": "object"
|
||||
@ -4785,7 +4790,6 @@
|
||||
"type": "object"
|
||||
},
|
||||
"gettableSilences": {
|
||||
"description": "GettableSilences gettable silences",
|
||||
"items": {
|
||||
"$ref": "#/definitions/gettableSilence",
|
||||
"type": "object"
|
||||
@ -4864,14 +4868,6 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"overrideLabels": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "The custom marshaling for labels.Labels ends up doing this anyways.",
|
||||
"title": "override the labels type with a map for generation.",
|
||||
"type": "object"
|
||||
},
|
||||
"peerStatus": {
|
||||
"description": "PeerStatus peer status",
|
||||
"properties": {
|
||||
@ -8586,13 +8582,74 @@
|
||||
},
|
||||
"/v1/rules/history": {
|
||||
"get": {
|
||||
"description": "Allows to query alerting state history.\nIn addition to defined query parameters it accepts filter by labels. The query parameter name must start with 'labels_'\nExample: /v1/rules/history?labels_myKey1=myValue1\u0026labels_myKey2=myValue2",
|
||||
"operationId": "RouteGetStateHistory",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "The timestamp of the start point of the time range the history is obtained.",
|
||||
"format": "int64",
|
||||
"in": "query",
|
||||
"name": "from",
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"description": "The timestamp of the end point of the time range the history is obtained.",
|
||||
"format": "int64",
|
||||
"in": "query",
|
||||
"name": "to",
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"description": "Limits the number of records that needs to be returned.",
|
||||
"format": "int64",
|
||||
"in": "query",
|
||||
"name": "limit",
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"description": "Filter by rule UID. Required the state history is configured to use annotations for storage.",
|
||||
"in": "query",
|
||||
"name": "ruleUID",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"description": "Filter by rules that are or were assigned to the specific dashboard.",
|
||||
"in": "query",
|
||||
"name": "DashboardUID",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"description": "Filter by dashboard's panel ID. Requires Dashboard UID to be specified.",
|
||||
"format": "int64",
|
||||
"in": "query",
|
||||
"name": "PanelID",
|
||||
"type": "integer"
|
||||
}
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"$ref": "#/responses/StateHistory"
|
||||
},
|
||||
"403": {
|
||||
"description": "ForbiddenError",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ForbiddenError"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "NotFound",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/NotFound"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Failure",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/Failure"
|
||||
}
|
||||
}
|
||||
},
|
||||
"summary": "Query state history.",
|
||||
@ -8664,7 +8721,7 @@
|
||||
"description": "",
|
||||
"schema": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/receiver"
|
||||
"$ref": "#/definitions/Receiver"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
|
@ -3539,6 +3539,7 @@
|
||||
},
|
||||
"/v1/rules/history": {
|
||||
"get": {
|
||||
"description": "Allows to query alerting state history.\nIn addition to defined query parameters it accepts filter by labels. The query parameter name must start with 'labels_'\nExample: /v1/rules/history?labels_myKey1=myValue1\u0026labels_myKey2=myValue2",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
@ -3547,9 +3548,69 @@
|
||||
],
|
||||
"summary": "Query state history.",
|
||||
"operationId": "RouteGetStateHistory",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "The timestamp of the start point of the time range the history is obtained.",
|
||||
"name": "from",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "The timestamp of the end point of the time range the history is obtained.",
|
||||
"name": "to",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "Limits the number of records that needs to be returned.",
|
||||
"name": "limit",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by rule UID. Required the state history is configured to use annotations for storage.",
|
||||
"name": "ruleUID",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by rules that are or were assigned to the specific dashboard.",
|
||||
"name": "DashboardUID",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "Filter by dashboard's panel ID. Requires Dashboard UID to be specified.",
|
||||
"name": "PanelID",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"$ref": "#/responses/StateHistory"
|
||||
},
|
||||
"403": {
|
||||
"description": "ForbiddenError",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ForbiddenError"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "NotFound",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/NotFound"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Failure",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/Failure"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -3574,10 +3635,10 @@
|
||||
"format": "date-time"
|
||||
},
|
||||
"annotations": {
|
||||
"$ref": "#/definitions/overrideLabels"
|
||||
"$ref": "#/definitions/Labels"
|
||||
},
|
||||
"labels": {
|
||||
"$ref": "#/definitions/overrideLabels"
|
||||
"$ref": "#/definitions/Labels"
|
||||
},
|
||||
"state": {
|
||||
"type": "string"
|
||||
@ -3992,7 +4053,7 @@
|
||||
}
|
||||
},
|
||||
"annotations": {
|
||||
"$ref": "#/definitions/overrideLabels"
|
||||
"$ref": "#/definitions/Labels"
|
||||
},
|
||||
"duration": {
|
||||
"type": "number",
|
||||
@ -4006,7 +4067,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"labels": {
|
||||
"$ref": "#/definitions/overrideLabels"
|
||||
"$ref": "#/definitions/Labels"
|
||||
},
|
||||
"lastError": {
|
||||
"type": "string"
|
||||
@ -5269,6 +5330,9 @@
|
||||
"items": {
|
||||
"$ref": "#/definitions/TimeIntervalItem"
|
||||
}
|
||||
},
|
||||
"version": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -7021,7 +7085,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"labels": {
|
||||
"$ref": "#/definitions/overrideLabels"
|
||||
"$ref": "#/definitions/Labels"
|
||||
},
|
||||
"lastError": {
|
||||
"type": "string"
|
||||
@ -7788,8 +7852,9 @@
|
||||
}
|
||||
},
|
||||
"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": "URL is a custom URL type that allows validation at configuration load time.",
|
||||
"title": "A URL represents a parsed URL (technically, a URI reference).",
|
||||
"properties": {
|
||||
"ForceQuery": {
|
||||
"type": "boolean"
|
||||
@ -8053,6 +8118,7 @@
|
||||
}
|
||||
},
|
||||
"alertGroups": {
|
||||
"description": "AlertGroups alert groups",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
@ -8214,6 +8280,7 @@
|
||||
}
|
||||
},
|
||||
"gettableAlerts": {
|
||||
"description": "GettableAlerts gettable alerts",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
@ -8338,7 +8405,6 @@
|
||||
}
|
||||
},
|
||||
"gettableSilences": {
|
||||
"description": "GettableSilences gettable silences",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
@ -8417,14 +8483,6 @@
|
||||
"$ref": "#/definitions/matcher"
|
||||
}
|
||||
},
|
||||
"overrideLabels": {
|
||||
"description": "The custom marshaling for labels.Labels ends up doing this anyways.",
|
||||
"type": "object",
|
||||
"title": "override the labels type with a map for generation.",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"peerStatus": {
|
||||
"description": "PeerStatus peer status",
|
||||
"type": "object",
|
||||
@ -8702,7 +8760,7 @@
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/receiver"
|
||||
"$ref": "#/definitions/Receiver"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -12331,10 +12331,10 @@
|
||||
"format": "date-time"
|
||||
},
|
||||
"annotations": {
|
||||
"$ref": "#/definitions/overrideLabels"
|
||||
"$ref": "#/definitions/Labels"
|
||||
},
|
||||
"labels": {
|
||||
"$ref": "#/definitions/overrideLabels"
|
||||
"$ref": "#/definitions/Labels"
|
||||
},
|
||||
"state": {
|
||||
"type": "string"
|
||||
@ -12749,7 +12749,7 @@
|
||||
}
|
||||
},
|
||||
"annotations": {
|
||||
"$ref": "#/definitions/overrideLabels"
|
||||
"$ref": "#/definitions/Labels"
|
||||
},
|
||||
"duration": {
|
||||
"type": "number",
|
||||
@ -12763,7 +12763,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"labels": {
|
||||
"$ref": "#/definitions/overrideLabels"
|
||||
"$ref": "#/definitions/Labels"
|
||||
},
|
||||
"lastError": {
|
||||
"type": "string"
|
||||
@ -19527,7 +19527,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"labels": {
|
||||
"$ref": "#/definitions/overrideLabels"
|
||||
"$ref": "#/definitions/Labels"
|
||||
},
|
||||
"lastError": {
|
||||
"type": "string"
|
||||
@ -22244,6 +22244,16 @@
|
||||
},
|
||||
"gettableGrafanaSilence": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"comment",
|
||||
"createdBy",
|
||||
"endsAt",
|
||||
"matchers",
|
||||
"startsAt",
|
||||
"id",
|
||||
"status",
|
||||
"updatedAt"
|
||||
],
|
||||
"properties": {
|
||||
"accessControl": {
|
||||
"type": "object",
|
||||
@ -22256,8 +22266,41 @@
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -22395,14 +22438,6 @@
|
||||
"$ref": "#/definitions/matcher"
|
||||
}
|
||||
},
|
||||
"overrideLabels": {
|
||||
"description": "The custom marshaling for labels.Labels ends up doing this anyways.",
|
||||
"type": "object",
|
||||
"title": "override the labels type with a map for generation.",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"peerStatus": {
|
||||
"description": "PeerStatus peer status",
|
||||
"type": "object",
|
||||
@ -23951,7 +23986,7 @@
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/receiver"
|
||||
"$ref": "#/definitions/Receiver"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -1755,7 +1755,7 @@
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/receiver"
|
||||
"$ref": "#/components/schemas/Receiver"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
@ -2421,10 +2421,10 @@
|
||||
"type": "string"
|
||||
},
|
||||
"annotations": {
|
||||
"$ref": "#/components/schemas/overrideLabels"
|
||||
"$ref": "#/components/schemas/Labels"
|
||||
},
|
||||
"labels": {
|
||||
"$ref": "#/components/schemas/overrideLabels"
|
||||
"$ref": "#/components/schemas/Labels"
|
||||
},
|
||||
"state": {
|
||||
"type": "string"
|
||||
@ -2837,7 +2837,7 @@
|
||||
"type": "array"
|
||||
},
|
||||
"annotations": {
|
||||
"$ref": "#/components/schemas/overrideLabels"
|
||||
"$ref": "#/components/schemas/Labels"
|
||||
},
|
||||
"duration": {
|
||||
"format": "double",
|
||||
@ -2851,7 +2851,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"labels": {
|
||||
"$ref": "#/components/schemas/overrideLabels"
|
||||
"$ref": "#/components/schemas/Labels"
|
||||
},
|
||||
"lastError": {
|
||||
"type": "string"
|
||||
@ -9618,7 +9618,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"labels": {
|
||||
"$ref": "#/components/schemas/overrideLabels"
|
||||
"$ref": "#/components/schemas/Labels"
|
||||
},
|
||||
"lastError": {
|
||||
"type": "string"
|
||||
@ -12350,10 +12350,53 @@
|
||||
},
|
||||
"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": {
|
||||
@ -12489,14 +12532,6 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"overrideLabels": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "The custom marshaling for labels.Labels ends up doing this anyways.",
|
||||
"title": "override the labels type with a map for generation.",
|
||||
"type": "object"
|
||||
},
|
||||
"peerStatus": {
|
||||
"description": "PeerStatus peer status",
|
||||
"properties": {
|
||||
|
Loading…
Reference in New Issue
Block a user