Skip to content
HALOWERK

Codewerk

incident timeline

Merges three sources into one chronological timeline: error lines from the logs (same parser as log-normalize; repeated messages of the same template are collapsed into bursts with first and last time and count), Alertmanager webhook payloads (firing at startsAt, resolved at endsAt) and your own events such as deploys, rollbacks or config changes. It computes first error, first alert, first mitigation event after the alert, last resolution, time to detect and time to resolve, and returns the.

POST https://code.halowerk.com/v1/incident-timeline

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
logsstringNo
yearintegerNo
alertsarrayNoAlertmanager webhook payloads (with alerts[]) or single alerts.
eventsarrayNo
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "logs": {
      "type": "string",
      "maxLength": 5000000
    },
    "year": {
      "type": "integer",
      "minimum": 1990,
      "maximum": 2100
    },
    "alerts": {
      "type": "array",
      "maxItems": 500,
      "items": {
        "type": "object"
      },
      "description": "Alertmanager webhook payloads (with alerts[]) or single alerts."
    },
    "events": {
      "type": "array",
      "maxItems": 500,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "time",
          "text"
        ],
        "properties": {
          "time": {
            "type": "string",
            "format": "date-time"
          },
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "type": {
            "type": "string",
            "enum": [
              "deploy",
              "rollback",
              "config",
              "mitigation",
              "note"
            ],
            "default": "note"
          }
        }
      }
    }
  }
}

Open original schema

Published input example

{
  "logs": "{\"level\":\"error\",\"time\":\"2026-10-31T10:02:00Z\",\"msg\":\"db timeout\"}",
  "alerts": [
    {
      "status": "resolved",
      "alerts": [
        {
          "status": "resolved",
          "labels": {
            "alertname": "HighErrorRate",
            "severity": "page"
          },
          "startsAt": "2026-10-31T10:05:00Z",
          "endsAt": "2026-10-31T10:40:00Z"
        }
      ]
    }
  ],
  "events": [
    {
      "time": "2026-10-31T10:20:00Z",
      "text": "Rollback to v1.8.2",
      "type": "rollback"
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’