List insights

List all the insights available in the server.


GET/api/servers/{server}/insights

List all insights

This endpoint allows you to retrieve a paginated list of all insights available for a specific server.

Request

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

Response

{
  "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
  }
}