Get monitors
Spaces method and path for this operation:
Refer to Spaces for more information.
Get a list of monitors. You must have read privileges for the Synthetics feature in the Observability section of the Kibana feature privileges.
Query parameters
-
Additional filtering criteria.
-
The locations to filter by.
-
The monitor types to filter.
Values are
browser,http,icmp, ortcp. -
The page number for paginated results.
-
The number of items to return per page.
-
The projects to filter by.
-
A free-text query string.
-
The schedules to filter by.
-
The field to sort the results by.
Values are
name,createdAt,updatedAt, orstatus. -
The sort order.
Values are
ascordesc. -
The status to filter by.
-
Specifies whether to apply logical AND filtering for specific fields. Accepts either a string with values "tags" or "locations" or an array containing both.
Values are
tagsorlocations.
curl \ --request GET 'https://localhost:5601/api/synthetics/monitors' \ --header "Authorization: $API_KEY" { "page": 1, "total": 24, "monitors": [ { "type": "icmp", "enabled": false, "alert": { "status": { "enabled": true }, "tls": { "enabled": true } }, "schedule": { "number": "3", "unit": "m" }, "config_id": "e59142e5-1fe3-4aae-b0b0-19d6345e65a1", "timeout": "16", "name": "8.8.8.8:80", "locations": [ { "id": "us_central", "label": "North America - US Central", "geo": { "lat": 41.25, "lon": -95.86 }, "isServiceManaged": true } ], "namespace": "default", "origin": "ui", "id": "e59142e5-1fe3-4aae-b0b0-19d6345e65a1", "max_attempts": 2, "wait": "7", "revision": 3, "mode": "all", "ipv4": true, "ipv6": true, "created_at": "2023-11-07T09:57:04.152Z", "updated_at": "2023-12-04T19:19:34.039Z", "host": "8.8.8.8:80" } ], "absoluteTotal": 24, "perPage": 10, }