mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Regenerate swagger and openapi specifications (#62561)
This commit is contained in:
parent
ef7716d6b3
commit
f8bd13ffad
2
Makefile
2
Makefile
@ -56,7 +56,7 @@ validate-api-spec: $(MERGED_SPEC_TARGET) $(SWAGGER) ## Validate API spec
|
||||
$(SWAGGER) validate $(<)
|
||||
|
||||
clean-api-spec:
|
||||
rm $(SPEC_TARGET) $(MERGED_SPEC_TARGET) $(OAPI_SPEC_TARGET)
|
||||
rm -f $(SPEC_TARGET) $(MERGED_SPEC_TARGET) $(OAPI_SPEC_TARGET)
|
||||
|
||||
##@ OpenAPI 3
|
||||
OAPI_SPEC_TARGET = public/openapi3.json
|
||||
|
@ -22,6 +22,30 @@
|
||||
},
|
||||
"basePath": "/api",
|
||||
"paths": {
|
||||
"/access-control/assignments/search": {
|
||||
"post": {
|
||||
"description": "Returns the result of the search through access-control role assignments.\n\nYou need to have a permission with action `teams.roles:read` on scope `teams:*`\nand a permission with action `users.roles:read` on scope `users:*`.",
|
||||
"tags": [
|
||||
"enterprise"
|
||||
],
|
||||
"summary": "Debug permissions.",
|
||||
"operationId": "searchResult",
|
||||
"responses": {
|
||||
"200": {
|
||||
"$ref": "#/responses/searchResultResponse"
|
||||
},
|
||||
"400": {
|
||||
"$ref": "#/responses/badRequestError"
|
||||
},
|
||||
"403": {
|
||||
"$ref": "#/responses/forbiddenError"
|
||||
},
|
||||
"500": {
|
||||
"$ref": "#/responses/internalServerError"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/access-control/roles": {
|
||||
"get": {
|
||||
"description": "Gets all existing roles. The response contains all global and organization local roles, for the organization which user is signed in.\n\nYou need to have a permission with action `roles:read` and scope `roles:*`.",
|
||||
@ -10819,6 +10843,18 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"AdminCreateUserResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"AdminStats": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -11235,6 +11271,9 @@
|
||||
"for": {
|
||||
"$ref": "#/definitions/Duration"
|
||||
},
|
||||
"isPaused": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"labels": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
@ -11980,9 +12019,6 @@
|
||||
"dashboard"
|
||||
],
|
||||
"properties": {
|
||||
"Result": {
|
||||
"$ref": "#/definitions/DashboardSnapshot"
|
||||
},
|
||||
"dashboard": {
|
||||
"$ref": "#/definitions/Json"
|
||||
},
|
||||
@ -12525,64 +12561,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"DashboardSnapshot": {
|
||||
"description": "DashboardSnapshot model",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"Created": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"Dashboard": {
|
||||
"$ref": "#/definitions/Json"
|
||||
},
|
||||
"DashboardEncrypted": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"format": "uint8"
|
||||
}
|
||||
},
|
||||
"DeleteKey": {
|
||||
"type": "string"
|
||||
},
|
||||
"Expires": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"External": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"ExternalDeleteUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"ExternalUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"Id": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"Key": {
|
||||
"type": "string"
|
||||
},
|
||||
"Name": {
|
||||
"type": "string"
|
||||
},
|
||||
"OrgId": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"Updated": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"UserId": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
},
|
||||
"DashboardSnapshotDTO": {
|
||||
"description": "DashboardSnapshotDTO without dashboard map",
|
||||
"type": "object",
|
||||
@ -13025,9 +13003,9 @@
|
||||
"format": "int64"
|
||||
},
|
||||
"Duration": {
|
||||
"description": "A Duration represents the elapsed time between two instants\nas an int64 nanosecond count. The representation limits the\nlargest representable duration to approximately 290 years.",
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
"format": "int64",
|
||||
"title": "Duration is a type used for marshalling durations."
|
||||
},
|
||||
"EmailConfig": {
|
||||
"type": "object",
|
||||
@ -14623,7 +14601,7 @@
|
||||
},
|
||||
"LibraryElementDTOMetaUser": {
|
||||
"type": "object",
|
||||
"title": "LibraryElementDTOMetaUser is the meta information for user that creates/changes the library element.",
|
||||
"title": "LibraryElementDTOMetaUser defines model for LibraryElementDTOMetaUser.",
|
||||
"properties": {
|
||||
"avatarUrl": {
|
||||
"type": "string"
|
||||
@ -14831,34 +14809,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"NavLink": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"target": {
|
||||
"type": "string"
|
||||
},
|
||||
"text": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"NavbarPreference": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"savedItems": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/NavLink"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"NewApiKeyResult": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -15351,9 +15301,6 @@
|
||||
"language": {
|
||||
"type": "string"
|
||||
},
|
||||
"navbar": {
|
||||
"$ref": "#/definitions/NavbarPreference"
|
||||
},
|
||||
"queryHistory": {
|
||||
"$ref": "#/definitions/QueryHistoryPreference"
|
||||
},
|
||||
@ -15859,32 +15806,31 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Prefs": {
|
||||
"Preferences": {
|
||||
"type": "object",
|
||||
"title": "Preferences defines model for Preferences.",
|
||||
"properties": {
|
||||
"homeDashboardId": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"homeDashboardUID": {
|
||||
"description": "UID for the home dashboard",
|
||||
"type": "string"
|
||||
},
|
||||
"language": {
|
||||
"description": "Selected language (beta)",
|
||||
"type": "string"
|
||||
},
|
||||
"navbar": {
|
||||
"$ref": "#/definitions/NavbarPreference"
|
||||
},
|
||||
"queryHistory": {
|
||||
"$ref": "#/definitions/QueryHistoryPreference"
|
||||
},
|
||||
"theme": {
|
||||
"description": "light, dark, empty is default",
|
||||
"type": "string"
|
||||
},
|
||||
"timezone": {
|
||||
"description": "The timezone selection\nTODO: this should use the timezone defined in common",
|
||||
"type": "string"
|
||||
},
|
||||
"weekStart": {
|
||||
"description": "day of the week (sunday, monday, etc)",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
@ -16005,7 +15951,7 @@
|
||||
},
|
||||
"isPaused": {
|
||||
"type": "boolean",
|
||||
"example": true
|
||||
"example": false
|
||||
},
|
||||
"labels": {
|
||||
"type": "object",
|
||||
@ -17010,6 +16956,50 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"SearchResult": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"result": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/SearchResultItem"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"SearchResultItem": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"action": {
|
||||
"type": "string"
|
||||
},
|
||||
"basicRole": {
|
||||
"type": "string"
|
||||
},
|
||||
"orgID": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"roleName": {
|
||||
"type": "string"
|
||||
},
|
||||
"scope": {
|
||||
"type": "string"
|
||||
},
|
||||
"teamID": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"userID": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"version": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
},
|
||||
"SearchTeamQueryResult": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -18066,8 +18056,9 @@
|
||||
"type": "string"
|
||||
},
|
||||
"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 RawPath, an optional field which only gets\nset if the default encoding is different from Path.\n\nURL's String method uses the EscapedPath method to obtain the path. See the\nEscapedPath method for more details.",
|
||||
"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"
|
||||
@ -18407,9 +18398,6 @@
|
||||
"language": {
|
||||
"type": "string"
|
||||
},
|
||||
"navbar": {
|
||||
"$ref": "#/definitions/NavbarPreference"
|
||||
},
|
||||
"queryHistory": {
|
||||
"$ref": "#/definitions/QueryHistoryPreference"
|
||||
},
|
||||
@ -18417,7 +18405,8 @@
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"light",
|
||||
"dark"
|
||||
"dark",
|
||||
"system"
|
||||
]
|
||||
},
|
||||
"timezone": {
|
||||
@ -18540,18 +18529,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"UserIdDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"UserLookupDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -18933,7 +18910,6 @@
|
||||
}
|
||||
},
|
||||
"alertGroups": {
|
||||
"description": "AlertGroups alert groups",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/alertGroup"
|
||||
@ -19093,13 +19069,13 @@
|
||||
}
|
||||
},
|
||||
"gettableAlerts": {
|
||||
"description": "GettableAlerts gettable alerts",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/gettableAlert"
|
||||
}
|
||||
},
|
||||
"gettableSilence": {
|
||||
"description": "GettableSilence gettable silence",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"comment",
|
||||
@ -19148,13 +19124,13 @@
|
||||
}
|
||||
},
|
||||
"gettableSilences": {
|
||||
"description": "GettableSilences gettable silences",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/gettableSilence"
|
||||
}
|
||||
},
|
||||
"integration": {
|
||||
"description": "Integration integration",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"name",
|
||||
@ -19477,7 +19453,7 @@
|
||||
"adminCreateUserResponse": {
|
||||
"description": "(empty)",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/UserIdDTO"
|
||||
"$ref": "#/definitions/AdminCreateUserResponse"
|
||||
}
|
||||
},
|
||||
"adminGetSettingsResponse": {
|
||||
@ -20132,7 +20108,7 @@
|
||||
"getPreferencesResponse": {
|
||||
"description": "(empty)",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/Prefs"
|
||||
"$ref": "#/definitions/Preferences"
|
||||
}
|
||||
},
|
||||
"getQueryHistoryDeleteQueryResponse": {
|
||||
@ -20603,6 +20579,12 @@
|
||||
"$ref": "#/definitions/HitList"
|
||||
}
|
||||
},
|
||||
"searchResultResponse": {
|
||||
"description": "(empty)",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/SearchResult"
|
||||
}
|
||||
},
|
||||
"searchTeamsResponse": {
|
||||
"description": "(empty)",
|
||||
"schema": {
|
||||
|
@ -22,6 +22,30 @@
|
||||
},
|
||||
"basePath": "/api",
|
||||
"paths": {
|
||||
"/access-control/assignments/search": {
|
||||
"post": {
|
||||
"description": "Returns the result of the search through access-control role assignments.\n\nYou need to have a permission with action `teams.roles:read` on scope `teams:*`\nand a permission with action `users.roles:read` on scope `users:*`.",
|
||||
"tags": [
|
||||
"enterprise"
|
||||
],
|
||||
"summary": "Debug permissions.",
|
||||
"operationId": "searchResult",
|
||||
"responses": {
|
||||
"200": {
|
||||
"$ref": "#/responses/searchResultResponse"
|
||||
},
|
||||
"400": {
|
||||
"$ref": "#/responses/badRequestError"
|
||||
},
|
||||
"403": {
|
||||
"$ref": "#/responses/forbiddenError"
|
||||
},
|
||||
"500": {
|
||||
"$ref": "#/responses/internalServerError"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/access-control/roles": {
|
||||
"get": {
|
||||
"description": "Gets all existing roles. The response contains all global and organization local roles, for the organization which user is signed in.\n\nYou need to have a permission with action `roles:read` and scope `roles:*`.",
|
||||
@ -10028,6 +10052,18 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"AdminCreateUserResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"AdminStats": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -10255,6 +10291,115 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"AlertQueryExport": {
|
||||
"type": "object",
|
||||
"title": "AlertQueryExport is the provisioned export of models.AlertQuery.",
|
||||
"properties": {
|
||||
"datasourceUid": {
|
||||
"type": "string"
|
||||
},
|
||||
"model": {
|
||||
"type": "object",
|
||||
"additionalProperties": {}
|
||||
},
|
||||
"queryType": {
|
||||
"type": "string"
|
||||
},
|
||||
"refId": {
|
||||
"type": "string"
|
||||
},
|
||||
"relativeTimeRange": {
|
||||
"$ref": "#/definitions/RelativeTimeRange"
|
||||
}
|
||||
}
|
||||
},
|
||||
"AlertRuleExport": {
|
||||
"type": "object",
|
||||
"title": "AlertRuleExport is the provisioned file export of models.AlertRule.",
|
||||
"properties": {
|
||||
"annotations": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"condition": {
|
||||
"type": "string"
|
||||
},
|
||||
"dasboardUid": {
|
||||
"type": "string"
|
||||
},
|
||||
"data": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/AlertQueryExport"
|
||||
}
|
||||
},
|
||||
"execErrState": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"Alerting",
|
||||
"Error",
|
||||
"OK"
|
||||
]
|
||||
},
|
||||
"for": {
|
||||
"$ref": "#/definitions/Duration"
|
||||
},
|
||||
"isPaused": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"labels": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"noDataState": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"Alerting",
|
||||
"NoData",
|
||||
"OK"
|
||||
]
|
||||
},
|
||||
"panelId": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"uid": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"AlertRuleGroupExport": {
|
||||
"type": "object",
|
||||
"title": "AlertRuleGroupExport is the provisioned file export of AlertRuleGroupV1.",
|
||||
"properties": {
|
||||
"folder": {
|
||||
"type": "string"
|
||||
},
|
||||
"interval": {
|
||||
"$ref": "#/definitions/Duration"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"orgId": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"rules": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/AlertRuleExport"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"AlertStateInfoDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -10335,6 +10480,22 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"AlertingFileExport": {
|
||||
"type": "object",
|
||||
"title": "AlertingFileExport is the full provisioned file export.",
|
||||
"properties": {
|
||||
"apiVersion": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"groups": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/AlertRuleGroupExport"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"AnnotationActions": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -10683,9 +10844,6 @@
|
||||
"dashboard"
|
||||
],
|
||||
"properties": {
|
||||
"Result": {
|
||||
"$ref": "#/definitions/DashboardSnapshot"
|
||||
},
|
||||
"dashboard": {
|
||||
"$ref": "#/definitions/Json"
|
||||
},
|
||||
@ -11228,64 +11386,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"DashboardSnapshot": {
|
||||
"description": "DashboardSnapshot model",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"Created": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"Dashboard": {
|
||||
"$ref": "#/definitions/Json"
|
||||
},
|
||||
"DashboardEncrypted": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"format": "uint8"
|
||||
}
|
||||
},
|
||||
"DeleteKey": {
|
||||
"type": "string"
|
||||
},
|
||||
"Expires": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"External": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"ExternalDeleteUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"ExternalUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"Id": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"Key": {
|
||||
"type": "string"
|
||||
},
|
||||
"Name": {
|
||||
"type": "string"
|
||||
},
|
||||
"OrgId": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"Updated": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"UserId": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
},
|
||||
"DashboardSnapshotDTO": {
|
||||
"description": "DashboardSnapshotDTO without dashboard map",
|
||||
"type": "object",
|
||||
@ -11690,9 +11790,10 @@
|
||||
"format": "int64"
|
||||
},
|
||||
"Duration": {
|
||||
"description": "A Duration represents the elapsed time between two instants\nas an int64 nanosecond count. The representation limits the\nlargest representable duration to approximately 290 years.",
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
"format": "int64",
|
||||
"title": "Duration is a type used for marshalling durations.",
|
||||
"$ref": "#/definitions/Duration"
|
||||
},
|
||||
"ErrorResponseBody": {
|
||||
"type": "object",
|
||||
@ -12528,7 +12629,7 @@
|
||||
},
|
||||
"LibraryElementDTOMetaUser": {
|
||||
"type": "object",
|
||||
"title": "LibraryElementDTOMetaUser is the meta information for user that creates/changes the library element.",
|
||||
"title": "LibraryElementDTOMetaUser defines model for LibraryElementDTOMetaUser.",
|
||||
"properties": {
|
||||
"avatarUrl": {
|
||||
"type": "string"
|
||||
@ -12669,34 +12770,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"NavLink": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"target": {
|
||||
"type": "string"
|
||||
},
|
||||
"text": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"NavbarPreference": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"savedItems": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/NavLink"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"NewApiKeyResult": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -12934,9 +13007,6 @@
|
||||
"language": {
|
||||
"type": "string"
|
||||
},
|
||||
"navbar": {
|
||||
"$ref": "#/definitions/NavbarPreference"
|
||||
},
|
||||
"queryHistory": {
|
||||
"$ref": "#/definitions/QueryHistoryPreference"
|
||||
},
|
||||
@ -13153,32 +13223,31 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Prefs": {
|
||||
"Preferences": {
|
||||
"type": "object",
|
||||
"title": "Preferences defines model for Preferences.",
|
||||
"properties": {
|
||||
"homeDashboardId": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"homeDashboardUID": {
|
||||
"description": "UID for the home dashboard",
|
||||
"type": "string"
|
||||
},
|
||||
"language": {
|
||||
"description": "Selected language (beta)",
|
||||
"type": "string"
|
||||
},
|
||||
"navbar": {
|
||||
"$ref": "#/definitions/NavbarPreference"
|
||||
},
|
||||
"queryHistory": {
|
||||
"$ref": "#/definitions/QueryHistoryPreference"
|
||||
},
|
||||
"theme": {
|
||||
"description": "light, dark, empty is default",
|
||||
"type": "string"
|
||||
},
|
||||
"timezone": {
|
||||
"description": "The timezone selection\nTODO: this should use the timezone defined in common",
|
||||
"type": "string"
|
||||
},
|
||||
"weekStart": {
|
||||
"description": "day of the week (sunday, monday, etc)",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
@ -13483,6 +13552,18 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"RelativeTimeRange": {
|
||||
"description": "RelativeTimeRange is the per query start and end time\nfor requests.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"from": {
|
||||
"$ref": "#/definitions/Duration"
|
||||
},
|
||||
"to": {
|
||||
"$ref": "#/definitions/Duration"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ReportEmailDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -13740,6 +13821,50 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"SearchResult": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"result": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/SearchResultItem"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"SearchResultItem": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"action": {
|
||||
"type": "string"
|
||||
},
|
||||
"basicRole": {
|
||||
"type": "string"
|
||||
},
|
||||
"orgID": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"roleName": {
|
||||
"type": "string"
|
||||
},
|
||||
"scope": {
|
||||
"type": "string"
|
||||
},
|
||||
"teamID": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"userID": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"version": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
},
|
||||
"SearchTeamQueryResult": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -14698,9 +14823,6 @@
|
||||
"language": {
|
||||
"type": "string"
|
||||
},
|
||||
"navbar": {
|
||||
"$ref": "#/definitions/NavbarPreference"
|
||||
},
|
||||
"queryHistory": {
|
||||
"$ref": "#/definitions/QueryHistoryPreference"
|
||||
},
|
||||
@ -14708,7 +14830,8 @@
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"light",
|
||||
"dark"
|
||||
"dark",
|
||||
"system"
|
||||
]
|
||||
},
|
||||
"timezone": {
|
||||
@ -14831,18 +14954,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"UserIdDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"UserLookupDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -15070,7 +15181,7 @@
|
||||
"adminCreateUserResponse": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/UserIdDTO"
|
||||
"$ref": "#/definitions/AdminCreateUserResponse"
|
||||
}
|
||||
},
|
||||
"adminGetSettingsResponse": {
|
||||
@ -15725,7 +15836,7 @@
|
||||
"getPreferencesResponse": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/Prefs"
|
||||
"$ref": "#/definitions/Preferences"
|
||||
}
|
||||
},
|
||||
"getQueryHistoryDeleteQueryResponse": {
|
||||
@ -16187,6 +16298,12 @@
|
||||
"$ref": "#/definitions/HitList"
|
||||
}
|
||||
},
|
||||
"searchResultResponse": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/SearchResult"
|
||||
}
|
||||
},
|
||||
"searchTeamsResponse": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
|
@ -37,7 +37,7 @@
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/UserIdDTO"
|
||||
"$ref": "#/components/schemas/AdminCreateUserResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -964,7 +964,7 @@
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Prefs"
|
||||
"$ref": "#/components/schemas/Preferences"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -1630,6 +1630,16 @@
|
||||
},
|
||||
"description": "(empty)"
|
||||
},
|
||||
"searchResultResponse": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/SearchResult"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "(empty)"
|
||||
},
|
||||
"searchTeamsResponse": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
@ -2020,6 +2030,18 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"AdminCreateUserResponse": {
|
||||
"properties": {
|
||||
"id": {
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"AdminStats": {
|
||||
"properties": {
|
||||
"activeAdmins": {
|
||||
@ -2361,6 +2383,28 @@
|
||||
"title": "AlertQuery represents a single query associated with an alert definition.",
|
||||
"type": "object"
|
||||
},
|
||||
"AlertQueryExport": {
|
||||
"properties": {
|
||||
"datasourceUid": {
|
||||
"type": "string"
|
||||
},
|
||||
"model": {
|
||||
"additionalProperties": false,
|
||||
"type": "object"
|
||||
},
|
||||
"queryType": {
|
||||
"type": "string"
|
||||
},
|
||||
"refId": {
|
||||
"type": "string"
|
||||
},
|
||||
"relativeTimeRange": {
|
||||
"$ref": "#/components/schemas/RelativeTimeRange"
|
||||
}
|
||||
},
|
||||
"title": "AlertQueryExport is the provisioned export of models.AlertQuery.",
|
||||
"type": "object"
|
||||
},
|
||||
"AlertResponse": {
|
||||
"properties": {
|
||||
"data": {
|
||||
@ -2381,6 +2425,68 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"AlertRuleExport": {
|
||||
"properties": {
|
||||
"annotations": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"condition": {
|
||||
"type": "string"
|
||||
},
|
||||
"dasboardUid": {
|
||||
"type": "string"
|
||||
},
|
||||
"data": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/AlertQueryExport"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"execErrState": {
|
||||
"enum": [
|
||||
"Alerting",
|
||||
"Error",
|
||||
"OK"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"for": {
|
||||
"$ref": "#/components/schemas/Duration"
|
||||
},
|
||||
"isPaused": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"labels": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"noDataState": {
|
||||
"enum": [
|
||||
"Alerting",
|
||||
"NoData",
|
||||
"OK"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"panelId": {
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"uid": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"title": "AlertRuleExport is the provisioned file export of models.AlertRule.",
|
||||
"type": "object"
|
||||
},
|
||||
"AlertRuleGroup": {
|
||||
"properties": {
|
||||
"folderUid": {
|
||||
@ -2402,6 +2508,31 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"AlertRuleGroupExport": {
|
||||
"properties": {
|
||||
"folder": {
|
||||
"type": "string"
|
||||
},
|
||||
"interval": {
|
||||
"$ref": "#/components/schemas/Duration"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"orgId": {
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
},
|
||||
"rules": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/AlertRuleExport"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"title": "AlertRuleGroupExport is the provisioned file export of AlertRuleGroupV1.",
|
||||
"type": "object"
|
||||
},
|
||||
"AlertRuleGroupMetadata": {
|
||||
"properties": {
|
||||
"interval": {
|
||||
@ -2491,6 +2622,22 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"AlertingFileExport": {
|
||||
"properties": {
|
||||
"apiVersion": {
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
},
|
||||
"groups": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/AlertRuleGroupExport"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"title": "AlertingFileExport is the full provisioned file export.",
|
||||
"type": "object"
|
||||
},
|
||||
"AlertingRule": {
|
||||
"description": "adapted from cortex",
|
||||
"properties": {
|
||||
@ -3055,9 +3202,6 @@
|
||||
},
|
||||
"CreateDashboardSnapshotCommand": {
|
||||
"properties": {
|
||||
"Result": {
|
||||
"$ref": "#/components/schemas/DashboardSnapshot"
|
||||
},
|
||||
"dashboard": {
|
||||
"$ref": "#/components/schemas/Json"
|
||||
},
|
||||
@ -3604,64 +3748,6 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"DashboardSnapshot": {
|
||||
"description": "DashboardSnapshot model",
|
||||
"properties": {
|
||||
"Created": {
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"Dashboard": {
|
||||
"$ref": "#/components/schemas/Json"
|
||||
},
|
||||
"DashboardEncrypted": {
|
||||
"items": {
|
||||
"format": "uint8",
|
||||
"type": "integer"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"DeleteKey": {
|
||||
"type": "string"
|
||||
},
|
||||
"Expires": {
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"External": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"ExternalDeleteUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"ExternalUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"Id": {
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
},
|
||||
"Key": {
|
||||
"type": "string"
|
||||
},
|
||||
"Name": {
|
||||
"type": "string"
|
||||
},
|
||||
"OrgId": {
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
},
|
||||
"Updated": {
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"UserId": {
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"DashboardSnapshotDTO": {
|
||||
"description": "DashboardSnapshotDTO without dashboard map",
|
||||
"properties": {
|
||||
@ -4057,6 +4143,27 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"DiscordConfig": {
|
||||
"properties": {
|
||||
"http_config": {
|
||||
"$ref": "#/components/schemas/HTTPClientConfig"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
"send_resolved": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"webhook_url": {
|
||||
"$ref": "#/components/schemas/SecretURL"
|
||||
}
|
||||
},
|
||||
"title": "DiscordConfig configures notifications via Discord.",
|
||||
"type": "object"
|
||||
},
|
||||
"DiscoveryBase": {
|
||||
"properties": {
|
||||
"error": {
|
||||
@ -4083,8 +4190,8 @@
|
||||
"type": "integer"
|
||||
},
|
||||
"Duration": {
|
||||
"description": "A Duration represents the elapsed time between two instants\nas an int64 nanosecond count. The representation limits the\nlargest representable duration to approximately 290 years.",
|
||||
"format": "int64",
|
||||
"title": "Duration is a type used for marshalling durations.",
|
||||
"type": "integer"
|
||||
},
|
||||
"EmailConfig": {
|
||||
@ -4685,6 +4792,12 @@
|
||||
},
|
||||
"GettableApiReceiver": {
|
||||
"properties": {
|
||||
"discord_configs": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/DiscordConfig"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"email_configs": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/EmailConfig"
|
||||
@ -4743,6 +4856,12 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"webex_configs": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebexConfig"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"webhook_configs": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebhookConfig"
|
||||
@ -4808,7 +4927,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"settings": {
|
||||
"$ref": "#/components/schemas/Json"
|
||||
"$ref": "#/components/schemas/RawMessage"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
@ -5040,9 +5159,15 @@
|
||||
"victorops_api_key": {
|
||||
"$ref": "#/components/schemas/Secret"
|
||||
},
|
||||
"victorops_api_key_file": {
|
||||
"type": "string"
|
||||
},
|
||||
"victorops_api_url": {
|
||||
"$ref": "#/components/schemas/URL"
|
||||
},
|
||||
"webex_api_url": {
|
||||
"$ref": "#/components/schemas/URL"
|
||||
},
|
||||
"wechat_api_corp_id": {
|
||||
"type": "string"
|
||||
},
|
||||
@ -5081,6 +5206,9 @@
|
||||
"oauth2": {
|
||||
"$ref": "#/components/schemas/OAuth2"
|
||||
},
|
||||
"proxy_connect_header": {
|
||||
"$ref": "#/components/schemas/Header"
|
||||
},
|
||||
"proxy_url": {
|
||||
"$ref": "#/components/schemas/URL"
|
||||
},
|
||||
@ -5091,6 +5219,15 @@
|
||||
"title": "HTTPClientConfig configures an HTTP client.",
|
||||
"type": "object"
|
||||
},
|
||||
"Header": {
|
||||
"additionalProperties": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/Secret"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Hit": {
|
||||
"properties": {
|
||||
"folderId": {
|
||||
@ -5662,7 +5799,7 @@
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"title": "LibraryElementDTOMetaUser is the meta information for user that creates/changes the library element.",
|
||||
"title": "LibraryElementDTOMetaUser defines model for LibraryElementDTOMetaUser.",
|
||||
"type": "object"
|
||||
},
|
||||
"LibraryElementResponse": {
|
||||
@ -5859,34 +5996,6 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"NavLink": {
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"target": {
|
||||
"type": "string"
|
||||
},
|
||||
"text": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"NavbarPreference": {
|
||||
"properties": {
|
||||
"savedItems": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/NavLink"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"NewApiKeyResult": {
|
||||
"properties": {
|
||||
"id": {
|
||||
@ -6242,15 +6351,24 @@
|
||||
"routing_key": {
|
||||
"$ref": "#/components/schemas/Secret"
|
||||
},
|
||||
"routing_key_file": {
|
||||
"type": "string"
|
||||
},
|
||||
"send_resolved": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"service_key": {
|
||||
"$ref": "#/components/schemas/Secret"
|
||||
},
|
||||
"service_key_file": {
|
||||
"type": "string"
|
||||
},
|
||||
"severity": {
|
||||
"type": "string"
|
||||
},
|
||||
"source": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"$ref": "#/components/schemas/URL"
|
||||
}
|
||||
@ -6368,9 +6486,6 @@
|
||||
"language": {
|
||||
"type": "string"
|
||||
},
|
||||
"navbar": {
|
||||
"$ref": "#/components/schemas/NavbarPreference"
|
||||
},
|
||||
"queryHistory": {
|
||||
"$ref": "#/components/schemas/QueryHistoryPreference"
|
||||
},
|
||||
@ -6643,6 +6758,12 @@
|
||||
},
|
||||
"PostableApiReceiver": {
|
||||
"properties": {
|
||||
"discord_configs": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/DiscordConfig"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"email_configs": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/EmailConfig"
|
||||
@ -6701,6 +6822,12 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"webex_configs": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebexConfig"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"webhook_configs": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebhookConfig"
|
||||
@ -6763,7 +6890,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"settings": {
|
||||
"$ref": "#/components/schemas/Json"
|
||||
"$ref": "#/components/schemas/RawMessage"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
@ -6865,34 +6992,33 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Prefs": {
|
||||
"Preferences": {
|
||||
"properties": {
|
||||
"homeDashboardId": {
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
},
|
||||
"homeDashboardUID": {
|
||||
"description": "UID for the home dashboard",
|
||||
"type": "string"
|
||||
},
|
||||
"language": {
|
||||
"description": "Selected language (beta)",
|
||||
"type": "string"
|
||||
},
|
||||
"navbar": {
|
||||
"$ref": "#/components/schemas/NavbarPreference"
|
||||
},
|
||||
"queryHistory": {
|
||||
"$ref": "#/components/schemas/QueryHistoryPreference"
|
||||
},
|
||||
"theme": {
|
||||
"description": "light, dark, empty is default",
|
||||
"type": "string"
|
||||
},
|
||||
"timezone": {
|
||||
"description": "The timezone selection\nTODO: this should use the timezone defined in common",
|
||||
"type": "string"
|
||||
},
|
||||
"weekStart": {
|
||||
"description": "day of the week (sunday, monday, etc)",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"title": "Preferences defines model for Preferences.",
|
||||
"type": "object"
|
||||
},
|
||||
"PrometheusRemoteWriteTargetJSON": {
|
||||
@ -6997,6 +7123,10 @@
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
},
|
||||
"isPaused": {
|
||||
"example": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"labels": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
@ -7093,6 +7223,9 @@
|
||||
"token": {
|
||||
"$ref": "#/components/schemas/Secret"
|
||||
},
|
||||
"token_file": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
},
|
||||
@ -7101,6 +7234,9 @@
|
||||
},
|
||||
"user_key": {
|
||||
"$ref": "#/components/schemas/Secret"
|
||||
},
|
||||
"user_key_file": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@ -7346,8 +7482,17 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"RawMessage": {
|
||||
"type": "object"
|
||||
},
|
||||
"Receiver": {
|
||||
"properties": {
|
||||
"discord_configs": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/DiscordConfig"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"email_configs": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/EmailConfig"
|
||||
@ -7400,6 +7545,12 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"webex_configs": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebexConfig"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"webhook_configs": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebhookConfig"
|
||||
@ -7991,6 +8142,50 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"SearchResult": {
|
||||
"properties": {
|
||||
"result": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/SearchResultItem"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"SearchResultItem": {
|
||||
"properties": {
|
||||
"action": {
|
||||
"type": "string"
|
||||
},
|
||||
"basicRole": {
|
||||
"type": "string"
|
||||
},
|
||||
"orgID": {
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
},
|
||||
"roleName": {
|
||||
"type": "string"
|
||||
},
|
||||
"scope": {
|
||||
"type": "string"
|
||||
},
|
||||
"teamID": {
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
},
|
||||
"userID": {
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
},
|
||||
"version": {
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"SearchTeamQueryResult": {
|
||||
"properties": {
|
||||
"page": {
|
||||
@ -8469,6 +8664,9 @@
|
||||
"description": "The client key file for the targets.",
|
||||
"type": "string"
|
||||
},
|
||||
"max_version": {
|
||||
"$ref": "#/components/schemas/TLSVersion"
|
||||
},
|
||||
"min_version": {
|
||||
"$ref": "#/components/schemas/TLSVersion"
|
||||
},
|
||||
@ -9043,6 +9241,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"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 RawPath, an optional field which only gets\nset if the default encoding is different from Path.\n\nURL's String method uses the EscapedPath method to obtain the path. See the\nEscapedPath method for more details.",
|
||||
"properties": {
|
||||
"ForceQuery": {
|
||||
"type": "boolean"
|
||||
@ -9078,7 +9277,7 @@
|
||||
"$ref": "#/components/schemas/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"
|
||||
},
|
||||
"UpdateAlertNotificationCommand": {
|
||||
@ -9383,16 +9582,14 @@
|
||||
"language": {
|
||||
"type": "string"
|
||||
},
|
||||
"navbar": {
|
||||
"$ref": "#/components/schemas/NavbarPreference"
|
||||
},
|
||||
"queryHistory": {
|
||||
"$ref": "#/components/schemas/QueryHistoryPreference"
|
||||
},
|
||||
"theme": {
|
||||
"enum": [
|
||||
"light",
|
||||
"dark"
|
||||
"dark",
|
||||
"system"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
@ -9517,18 +9714,6 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"UserIdDTO": {
|
||||
"properties": {
|
||||
"id": {
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"UserLookupDTO": {
|
||||
"properties": {
|
||||
"avatarUrl": {
|
||||
@ -9749,7 +9934,7 @@
|
||||
"$ref": "#/components/schemas/Secret"
|
||||
},
|
||||
"api_key_file": {
|
||||
"$ref": "#/components/schemas/Secret"
|
||||
"type": "string"
|
||||
},
|
||||
"api_url": {
|
||||
"$ref": "#/components/schemas/URL"
|
||||
@ -9789,6 +9974,27 @@
|
||||
"title": "VisType is used to indicate how the data should be visualized in explore.",
|
||||
"type": "string"
|
||||
},
|
||||
"WebexConfig": {
|
||||
"properties": {
|
||||
"api_url": {
|
||||
"$ref": "#/components/schemas/URL"
|
||||
},
|
||||
"http_config": {
|
||||
"$ref": "#/components/schemas/HTTPClientConfig"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
"room_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"send_resolved": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"title": "WebexConfig configures notifications via Webex.",
|
||||
"type": "object"
|
||||
},
|
||||
"WebhookConfig": {
|
||||
"properties": {
|
||||
"http_config": {
|
||||
@ -9866,7 +10072,6 @@
|
||||
"type": "object"
|
||||
},
|
||||
"alertGroup": {
|
||||
"description": "AlertGroup alert group",
|
||||
"properties": {
|
||||
"alerts": {
|
||||
"description": "alerts",
|
||||
@ -9994,7 +10199,6 @@
|
||||
"type": "object"
|
||||
},
|
||||
"gettableAlert": {
|
||||
"description": "GettableAlert gettable alert",
|
||||
"properties": {
|
||||
"annotations": {
|
||||
"$ref": "#/components/schemas/labelSet"
|
||||
@ -10056,6 +10260,7 @@
|
||||
"type": "array"
|
||||
},
|
||||
"gettableSilence": {
|
||||
"description": "GettableSilence gettable silence",
|
||||
"properties": {
|
||||
"comment": {
|
||||
"description": "comment",
|
||||
@ -10110,6 +10315,7 @@
|
||||
"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",
|
||||
@ -10428,6 +10634,30 @@
|
||||
},
|
||||
"openapi": "3.0.3",
|
||||
"paths": {
|
||||
"/access-control/assignments/search": {
|
||||
"post": {
|
||||
"description": "Returns the result of the search through access-control role assignments.\n\nYou need to have a permission with action `teams.roles:read` on scope `teams:*`\nand a permission with action `users.roles:read` on scope `users:*`.",
|
||||
"operationId": "searchResult",
|
||||
"responses": {
|
||||
"200": {
|
||||
"$ref": "#/components/responses/searchResultResponse"
|
||||
},
|
||||
"400": {
|
||||
"$ref": "#/components/responses/badRequestError"
|
||||
},
|
||||
"403": {
|
||||
"$ref": "#/components/responses/forbiddenError"
|
||||
},
|
||||
"500": {
|
||||
"$ref": "#/components/responses/internalServerError"
|
||||
}
|
||||
},
|
||||
"summary": "Debug permissions.",
|
||||
"tags": [
|
||||
"enterprise"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/access-control/roles": {
|
||||
"get": {
|
||||
"description": "Gets all existing roles. The response contains all global and organization local roles, for the organization which user is signed in.\n\nYou need to have a permission with action `roles:read` and scope `roles:*`.",
|
||||
@ -13096,6 +13326,41 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/v1/provisioning/alert-rules/export": {
|
||||
"get": {
|
||||
"operationId": "RouteGetAlertRulesExport",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Whether to initiate a download of the file or not.",
|
||||
"in": "query",
|
||||
"name": "download",
|
||||
"schema": {
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/AlertingFileExport"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "AlertingFileExport"
|
||||
},
|
||||
"404": {
|
||||
"description": " Not found."
|
||||
}
|
||||
},
|
||||
"summary": "Export all alert rules in provisioning file format.",
|
||||
"tags": [
|
||||
"provisioning"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/v1/provisioning/alert-rules/{UID}": {
|
||||
"delete": {
|
||||
"operationId": "RouteDeleteAlertRule",
|
||||
@ -13211,6 +13476,60 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/v1/provisioning/alert-rules/{UID}/export": {
|
||||
"get": {
|
||||
"operationId": "RouteGetAlertRuleExport",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Alert rule UID",
|
||||
"in": "path",
|
||||
"name": "UID",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "Whether to initiate a download of the file or not.",
|
||||
"in": "query",
|
||||
"name": "download",
|
||||
"schema": {
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/AlertingFileExport"
|
||||
}
|
||||
},
|
||||
"application/yaml": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/AlertingFileExport"
|
||||
}
|
||||
},
|
||||
"text/yaml": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/AlertingFileExport"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "AlertingFileExport"
|
||||
},
|
||||
"404": {
|
||||
"description": " Not found."
|
||||
}
|
||||
},
|
||||
"summary": "Export an alert rule in provisioning file format.",
|
||||
"tags": [
|
||||
"provisioning"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/v1/provisioning/contact-points": {
|
||||
"get": {
|
||||
"operationId": "RouteGetContactpoints",
|
||||
@ -13455,6 +13774,67 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/v1/provisioning/folder/{FolderUID}/rule-groups/{Group}/export": {
|
||||
"get": {
|
||||
"operationId": "RouteGetAlertRuleGroupExport",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "FolderUID",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "Group",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "Whether to initiate a download of the file or not.",
|
||||
"in": "query",
|
||||
"name": "download",
|
||||
"schema": {
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/AlertingFileExport"
|
||||
}
|
||||
},
|
||||
"application/yaml": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/AlertingFileExport"
|
||||
}
|
||||
},
|
||||
"text/yaml": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/AlertingFileExport"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "AlertingFileExport"
|
||||
},
|
||||
"404": {
|
||||
"description": " Not found."
|
||||
}
|
||||
},
|
||||
"summary": "Export an alert rule group in provisioning file format.",
|
||||
"tags": [
|
||||
"provisioning"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/v1/provisioning/mute-timings": {
|
||||
"get": {
|
||||
"operationId": "RouteGetMuteTimings",
|
||||
|
Loading…
Reference in New Issue
Block a user