13.6Filtering and pages of results
List calls return results in pages (a part of the list). Send limit to choose the page size.
- Send the call with a
limit. - If the answer has
nextCursor, more results are waiting. A cursor is a marker that says where the next page starts. - Send the call again with the same fields, plus
"cursor"set to thatnextCursorvalue. - Stop when
nextCursoris missing or empty. That was the last page.
| Call | Default | Max | Filters | Order |
|---|---|---|---|---|
ListMonitors | 50 | 200 | None | Newest first |
ListAlertChannels | 50 | 200 | None | |
ListExecutions (check results) | 50 | 1,000 | monitorId (required); statusFilter: CHECK_STATUS_UP, CHECK_STATUS_DOWN or CHECK_STATUS_DEGRADED (empty = all) | Newest first |
ListIncidents | 50 | 200 | status: "firing" or "resolved" (empty = all) | Newest first |
ListNotifications | 50 | 200 | monitorId (optional) | |
ListEvaluations | 200 | 1,000 | monitorId (required); windowSeconds (default 24 hours). No pages. | Newest first |
ListApiKeys, ListSecrets and ListMaintenanceWindows have no pages. They return everything. Maintenance windows come soonest first.
There is no search by name, type or tag, no sort option and no total count. To find a monitor, page through ListMonitors.
# First page: failed checks, 100 at a time
curl -s "$API/result/obsrvly.v1.ResultService/ListExecutions" \
-H "Authorization: Bearer $OBSRVLY_KEY" \
-H "Content-Type: application/json" \
-d '{"monitorId": "<monitor-id>", "limit": 100,
"statusFilter": "CHECK_STATUS_DOWN"}'
# Next page: add the nextCursor from the answer
curl -s "$API/result/obsrvly.v1.ResultService/ListExecutions" \
-H "Authorization: Bearer $OBSRVLY_KEY" \
-H "Content-Type: application/json" \
-d '{"monitorId": "<monitor-id>", "limit": 100,
"statusFilter": "CHECK_STATUS_DOWN",
"cursor": "<nextCursor>"}'Uptime and response-time summaries#
ListMonitorSummariestakesmonitorIds(at least 1, at most 1,000) and awindow.windowcan beSUMMARY_WINDOW_1H,SUMMARY_WINDOW_24H,SUMMARY_WINDOW_7DorSUMMARY_WINDOW_30D. If you leave it out, you get 24 hours.GetMonitorSeriesreturns points over time. You can setbucketSeconds. You get at most 1,500 points. A bucket that is too small is made larger.uptimePctis-1when nothing was measured. Show it as "no data", not 0%.overdue: truemeans there is no recent result. Do not showlastStatusas the current status.