Agent errors

Fleet agent errors

List all agent errors from the given fleet in descending order with backward pagination. You can optionally filter dismissed or not dismissed errors.

GEThttps://cloud-api.calyptia.com/v1/fleets/{fleetID}/agent_errors
Authorization
Path parameters
fleetID*string (uuid)
Query parameters
Response

OK

Headers
Body
id*string (uuid)
agentID*string (uuid)
error*string
Example: "[config] section 'foo' tried to instance a plugin name that don't exists"
dismissedAt*nullable string (date-time)
dismissReason*nullable string
createdAt*string (date-time)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/fleets/{fleetID}/agent_errors', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();
Response
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "agentID": "123e4567-e89b-12d3-a456-426614174000",
    "error": "[config] section 'foo' tried to instance a plugin name that don't exists",
    "dismissedAt": "2024-10-16T08:48:39.029Z",
    "dismissReason": "text",
    "createdAt": "2024-10-16T08:48:39.029Z"
  }
]