Ploi API
Ploi API

List insights

List all the insights available in the server.

GET api/servers/{server}/insights

Example request:

curl -X GET "https://ploi.io/api/servers/{server}/insights" \
-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,
            "status": "open",
            "description": "Your **supervisor** service is running, but you do not seem to use it. You can save resources by stopping this service, you can always start it when you need it.",
            "log_file": "/var/log/supervisor/supervisor.log",
            "priority": "medium",
            "meta": null,
            "is_fixable": true,
            "processed_at": null,
            "created_at": "2021-11-09 12:50:40"
        }
    ],
    "links": {
        "first": "https://ploi.io/api/servers/1/insights?page=1",
        "last": "https://ploi.io/api/servers/1/insights?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "«",
                "active": false
            },
            {
                "url": "https://ploi.io/api/servers/1/insights?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "»",
                "active": false
            }
        ],
        "path": "https://ploi.io/api/servers/1/insights",
        "per_page": 15,
        "to": 1,
        "total": 1
    }
}