Skip to main content
node
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
}

Authorizations

Authorization
string
header
required

API key authentication

Response

A response containing the total count of matching incident events and whether the count limit was reached

count
string<uint64>

Total number of incident events matching the filter

Example:

100

reachedLimit
boolean

Indicates if the count reached the system limit

Example:

false

I