Get incident timeline
GET
/api/v1/incidents/{incident_id}/timeline
const url = 'https://api.ultimateteam.ai/api/v1/incidents/example/timeline?tenant_id=example';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.ultimateteam.ai/api/v1/incidents/example/timeline?tenant_id=example' \ --header 'X-API-Key: <X-API-Key>'Returns chronological incident timeline.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”incident_id
required
Incident Id
string
Query Parameters
Section titled “Query Parameters”tenant_id
required
Tenant Id
Tenant identifier
string
Tenant identifier
Responses
Section titled “ Responses ”Successful Response
Media typeapplication/json
IncidentTimeline
Chronological timeline of events during an incident.
Args: incident_id: The incident this timeline belongs to. entries: List of timeline entries sorted by timestamp. window_start: Start of the incident window (ISO). window_end: End of the incident window (ISO).
object
entries
Entries
Array<object>
TimelineEntryA single entry in an incident timeline.
Args: timestamp: ISO timestamp of the event. source: Event source (error_tracker, metrics, health, runbook, escalation). description: Human-readable event description. severity: Severity level of the event. data: Optional additional structured data.
incident_id
Incident Id
string
window_end
Window End
string
window_start
Window Start
string
Example
{ "entries": [ { "description": "", "severity": "info", "source": "" } ], "incident_id": "", "window_end": "", "window_start": ""}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}