Ingest checks

Ingest Check

Check by ID.

GEThttps://cloud-api.calyptia.com/v1/ingest_checks/{checkID}
Authorization
Path parameters
checkID*string (uuid)
Response

OK

Body
id*string (uuid)
config*string (fluent-bit configuration)
status*CheckStatus (enum)

The status of a check.

newfailedrunningok
collectLogsboolean
logsstring (byte)
retries*number

number of retries for the check before marking it as failed

createdAt*string (date-time)
updatedAt*string (date-time)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/ingest_checks/{checkID}', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "config": "text",
  "status": "new",
  "collectLogs": false,
  "logs": "Ynl0ZXM=",
  "retries": 0,
  "createdAt": "2024-09-08T02:55:43.471Z",
  "updatedAt": "2024-09-08T02:55:43.471Z"
}

Delete a Ingest check.

Delete Ingest check by its ID.

DELETEhttps://cloud-api.calyptia.com/v1/ingest_checks/{checkID}
Authorization
Path parameters
checkID*string (uuid)
Response

No Content

Request
const response = await fetch('https://cloud-api.calyptia.com/v1/ingest_checks/{checkID}', {
    method: 'DELETE',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();

Update Ingest check

Update a Ingest check by its ID.

PATCHhttps://cloud-api.calyptia.com/v1/ingest_checks/{checkID}
Authorization
Path parameters
checkID*string (uuid)
Body
logsnullable string

logs coming from the fluent-bit pod, maximum size is 10MiB.

statusCheckStatus (enum)

The status of a check.

newfailedrunningok
Response

No Content

Request
const response = await fetch('https://cloud-api.calyptia.com/v1/ingest_checks/{checkID}', {
    method: 'PATCH',
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();