vs_monitors_uptime
Retrieve uptime percentage and outage breakdown for a monitor within a chosen time window, defaulting to the last 30 days.
Instructions
Fetch the uptime percentage and outage breakdown for a monitor over a window (default last 30 days).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Monitor id. | |
| window | No | Window: 24h, 7d, 30d, 90d, 365d. Default 30d. |
Implementation Reference
- src/tools.ts:276-279 (handler)The handler function for vs_monitors_uptime. Makes a GET request to /api/monitors/:id/uptime with optional 'window' query parameter.
handler: async (args, client) => client.request('GET', `/api/monitors/${encodeURIComponent(requireString(args, 'id'))}/uptime`, { query: { window: pickString(args, 'window') }, }),