Get Uptime
get_uptimeCompute an API test's uptime percentage over a window, plus latency percentiles and run counts. Uptime = SUCCESS / (SUCCESS + FAILURE); ERROR, MISSED and RATE_LIMITED runs are excluded. Defaults to the last 24 hours when no window is given. 'latencyAvg' is the plain average, and 'avgSteps', 'p50Steps', 'p95Steps' and 'p99Steps' average each step's phases over all runs, the slower half, the slowest 5% and the slowest 1% of runs, so a slow percentile can be read as DNS, handshake, server or download time. The steps are the same list, in the same order, as on the test's runs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"apiTestId": "<apiTestId>"
},
"name": "get_uptime"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End of the window, ISO-8601 instant; defaults to now | |
| from | No | Start of the window, ISO-8601 instant; defaults to 24h before 'to' | |
| apiTestId | Yes | Id of the API test to report on |