Authorizations
API key authentication
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/incidents/incidents/v1/events/count';
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));{
"count": 100,
"reachedLimit": false
}Retrieve the total count of incident events matching a filter.
Requires the following permissions:
incidents:readconst fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/incidents/incidents/v1/events/count';
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));{
"count": 100,
"reachedLimit": false
}API key authentication
Was this page helpful?