Status history

Pipeline status history

Status history from a pipeline. Every time a pipeline status is changed, a new history entry with the change is created.

GEThttps://cloud-api.calyptia.com/v1/aggregator_pipelines/{pipeline}/status_history
Authorization
Path parameters
pipeline*string (uuid)
Query parameters
Response

OK

Body
id*string (uuid)
config*AgentConfig (object)

Agent configuration history entry.

status*enum
NEWFAILEDSTARTINGSTARTEDSCALINGCHECKS_OKCHECKS_FAILED
eventsarray of PipelineEvent (object)
createdAt*string (date-time)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/aggregator_pipelines/{pipeline}/status_history', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();
Response
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "config": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "rawConfig": "text",
      "createdAt": "2024-11-21T09:45:23.632Z"
    },
    "status": "NEW",
    "events": [
      {
        "source": "k8s:deployment",
        "reason": "text",
        "message": "text",
        "loggedAt": "2024-11-21T09:45:23.632Z"
      }
    ],
    "createdAt": "2024-11-21T09:45:23.632Z"
  }
]