Ploi API

Monitored

Get all the monitored servers in 1 call with their statistics

GET api/servers/monitored

Example request:

curl -X GET "https://ploi.io/api/servers/monitored" \
-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,
            "name": "colossal-brook",
            "ip": "1.2.3.4",
            "url": "https://ploi.io/panel/servers/1",
            "statistics": [
                {
                    "cpu": "0",
                    "ram": "0",
                    "disk": "0",
                    "load_average": "0",
                    "date": "2022-12-06 14:34:05"
                },
                {
                    "cpu": "0.4",
                    "ram": "36.10",
                    "disk": "86",
                    "load_average": "0",
                    "date": "2022-12-06 14:34:22"
                },
                {
                    "cpu": "0.2",
                    "ram": "36.10",
                    "disk": "86",
                    "load_average": "0",
                    "date": "2022-12-06 14:34:59"
                },
                {
                    "cpu": "0.8",
                    "ram": "36.32",
                    "disk": "86",
                    "load_average": "0",
                    "date": "2022-12-06 14:35:06"
                },
                {
                    "cpu": "1.1",
                    "ram": "36.44",
                    "disk": "86",
                    "load_average": "0",
                    "date": "2022-12-06 14:35:31"
                },
                {
                    "cpu": "0.4",
                    "ram": "35.98",
                    "disk": "86",
                    "load_average": "0.09",
                    "date": "2022-12-06 14:40:04"
                }
            ]
        }
    ]
}