Authorizations
API key authentication
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/incidents/incidents/v1/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));
{
"items": [
{
"cxEventKey": "<string>",
"cxEventTimestamp": "2023-11-07T05:31:56Z",
"incidentEvent": {
"administrativeEvent": {
"userId": "<string>"
},
"id": "incident_event_id",
"incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
"originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
"snoozeIndicator": {
"durationMinutes": 123,
"startTime": "2023-11-07T05:31:56Z",
"userId": "<string>"
}
},
"incidentEventExtendedMetadata": {
"alertGroupByFields": [
"<string>"
],
"alertId": "<string>",
"alertLabels": [
{
"key": "key",
"value": "value"
}
],
"alertName": "<string>",
"alertType": "INCIDENT_EVENT_ALERT_TYPE_STANDARD_OR_UNSPECIFIED",
"incidentPermutation": [
{
"key": "<string>",
"value": "<string>"
}
],
"incidentSeverity": "INCIDENT_SEVERITY_UNSPECIFIED",
"incidentState": "INCIDENT_STATE_UNSPECIFIED",
"incidentStatus": "INCIDENT_STATUS_UNSPECIFIED",
"isMuted": true
}
}
],
"pagination": {
"nextPageToken": "next_page_token",
"totalSize": 100
}
}
List incident events with support for filtering, pagination, and ordering.
Requires the following permissions:
incidents:read
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/incidents/incidents/v1/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));
{
"items": [
{
"cxEventKey": "<string>",
"cxEventTimestamp": "2023-11-07T05:31:56Z",
"incidentEvent": {
"administrativeEvent": {
"userId": "<string>"
},
"id": "incident_event_id",
"incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
"originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
"snoozeIndicator": {
"durationMinutes": 123,
"startTime": "2023-11-07T05:31:56Z",
"userId": "<string>"
}
},
"incidentEventExtendedMetadata": {
"alertGroupByFields": [
"<string>"
],
"alertId": "<string>",
"alertLabels": [
{
"key": "key",
"value": "value"
}
],
"alertName": "<string>",
"alertType": "INCIDENT_EVENT_ALERT_TYPE_STANDARD_OR_UNSPECIFIED",
"incidentPermutation": [
{
"key": "<string>",
"value": "<string>"
}
],
"incidentSeverity": "INCIDENT_SEVERITY_UNSPECIFIED",
"incidentState": "INCIDENT_STATE_UNSPECIFIED",
"incidentStatus": "INCIDENT_STATUS_UNSPECIFIED",
"isMuted": true
}
}
],
"pagination": {
"nextPageToken": "next_page_token",
"totalSize": 100
}
}
API key authentication
Was this page helpful?