const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/incidents/%7BincidentId%7D/events';
let options = {method: 'GET', headers: {Authorization: 'Bearer <API_KEY>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"incidentEvents": [
{
"id": "incident_event_id",
"incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
"snoozeIndicator": {
"startTime": "2023-11-07T05:31:56Z",
"durationMinutes": 123,
"userId": "<string>"
},
"assignment": {
"assignment": {
"assignedTo": {
"userId": "user_id"
},
"assignedBy": {
"userId": "user_id"
}
}
},
"unassign": {},
"upsertState": {
"stateType": "UPSERT_INCIDENT_STATE_TYPE_UNSPECIFIED",
"payload": {
"cxEventKey": "<string>"
},
"isMuted": true
},
"acknowledge": {
"acknowledgedBy": {
"userId": "user_id"
}
},
"close": {
"closedBy": {
"userId": "user_id"
}
},
"originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
"administrativeEvent": {
"userId": "<string>"
},
"operationalEvent": {
"systemName": "<string>"
}
}
]
}
Retrieve a chronological list of all events associated with a specific incident. Includes state changes, assignments, acknowledgments, and resolutions.
Requires the following permissions:
incidents:read
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/incidents/%7BincidentId%7D/events';
let options = {method: 'GET', headers: {Authorization: 'Bearer <API_KEY>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"incidentEvents": [
{
"id": "incident_event_id",
"incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
"snoozeIndicator": {
"startTime": "2023-11-07T05:31:56Z",
"durationMinutes": 123,
"userId": "<string>"
},
"assignment": {
"assignment": {
"assignedTo": {
"userId": "user_id"
},
"assignedBy": {
"userId": "user_id"
}
}
},
"unassign": {},
"upsertState": {
"stateType": "UPSERT_INCIDENT_STATE_TYPE_UNSPECIFIED",
"payload": {
"cxEventKey": "<string>"
},
"isMuted": true
},
"acknowledge": {
"acknowledgedBy": {
"userId": "user_id"
}
},
"close": {
"closedBy": {
"userId": "user_id"
}
},
"originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
"administrativeEvent": {
"userId": "<string>"
},
"operationalEvent": {
"systemName": "<string>"
}
}
]
}
API key authentication
ID of the incident to retrieve events for
A successful response.
Response containing all events associated with the requested incident
Was this page helpful?