Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
190 changes: 189 additions & 1 deletion docs/openapi/monitoring-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,128 @@
}
}
},
"/api/v1/alert-channels/{id}/enabled": {
"patch": {
"tags": [
"Alert Channels"
],
"summary": "Enable or disable an alert channel without re-uploading config",
"operationId": "setEnabled",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SetEnabledRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/SingleValueResponseAlertChannelDto"
}
}
}
},
"400": {
"description": "Bad request — the payload failed validation",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized — missing or invalid credentials",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"403": {
"description": "Forbidden — the actor lacks permission for this resource",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "Not found — the requested resource does not exist",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"409": {
"description": "Conflict — the request collides with current resource state",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Internal server error — see the message field for details",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"502": {
"description": "Bad gateway — an upstream provider returned an error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"503": {
"description": "Service unavailable — try again shortly",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/api/v1/alert-channels/{id}/test": {
"post": {
"tags": [
Expand Down Expand Up @@ -13803,7 +13925,7 @@
"Status Data"
],
"summary": "List active components for a service with current status and inline uptime",
"description": "When ``groupId`` is supplied, only direct children of that group are returned — used by the pSEO renderer to lazy-load the leaves under a group that summary mode trimmed. Without ``groupId`` the response includes every active component for the service.",
"description": "When ``groupId`` is supplied, only direct children of that group are returned — used by the pSEO renderer to lazy-load the leaves under a group that summary mode trimmed. Without ``groupId`` the response includes every active component for the service. Supports pagination via ``page``/``size`` and case-insensitive name search via ``search``.",
"operationId": "getComponents",
"parameters": [
{
Expand All @@ -13823,6 +13945,35 @@
"type": "string",
"format": "uuid"
}
},
{
"name": "search",
"in": "query",
"description": "Case-insensitive substring match on component name",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "page",
"in": "query",
"description": "Zero-based page index",
"required": false,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "size",
"in": "query",
"description": "Page size (default 25, max 100)",
"required": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
Expand Down Expand Up @@ -21856,6 +22007,7 @@
"required": [
"channelType",
"createdAt",
"enabled",
"id",
"name",
"updatedAt"
Expand Down Expand Up @@ -21905,6 +22057,10 @@
}
]
},
"enabled": {
"type": "boolean",
"description": "Whether this channel is enabled and will receive alerts"
},
"createdAt": {
"type": "string",
"description": "Timestamp when the channel was created",
Expand Down Expand Up @@ -30128,6 +30284,13 @@
"type": "string"
}
},
"affectedRegions": {
"type": "array",
"nullable": true,
"items": {
"type": "string"
}
},
"updates": {
"type": "array",
"items": {
Expand Down Expand Up @@ -30203,6 +30366,13 @@
"type": "string",
"format": "date-time",
"nullable": true
},
"affectedRegions": {
"type": "array",
"nullable": true,
"items": {
"type": "string"
}
}
}
},
Expand Down Expand Up @@ -30566,6 +30736,19 @@
},
"description": "Replace the alert channels linked to a monitor"
},
"SetEnabledRequest": {
"required": [
"enabled"
],
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Whether the resource should be enabled"
}
},
"description": "Request body for toggling a resource's enabled state"
},
"SetMonitorAuthRequest": {
"required": [
"config"
Expand Down Expand Up @@ -33825,6 +34008,11 @@
"MCP",
"API"
]
},
"enabled": {
"type": "boolean",
"description": "Whether this channel is enabled (default: true); null preserves current value",
"nullable": true
}
}
},
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.