List monitors

List all the monitors for your site

GET api/servers/{server}/sites/{site}/monitors

Example request:

curl -X GET "https://ploi.io/api/servers/{server}/sites/{site}/monitors" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Example response:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "data": [
        {
            "id": 1,
            "label": "My Monitor",
            "location": "singapore",
            "average_uptime": "6.23",
            "active": true,
            "created_at": "2019-08-13 14:06:21"
        }
    ],
    "links": {
        "first": "https://ploi.io/api/servers/1/sites/1/monitors?page=1",
        "last": "https://ploi.io/api/servers/1/sites/1/monitors?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "path": "https://ploi.io/api/servers/1/sites/1/monitors",
        "per_page": 15,
        "to": 1,
        "total": 1
    }
}