Monitored servers
Get all monitored servers with their statistics in a single call.
GET/api/servers/monitored
List monitored servers
This endpoint allows you to retrieve all servers that have monitoring enabled, along with their latest statistics.
Request
GET
/api/servers/monitoredcurl -G "https://ploi.io/api/servers/monitored" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Response
{
"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.8",
"ram": "36.32",
"disk": "86",
"load_average": "0",
"date": "2022-12-06 14:35:06"
}
]
}
]
}