Authorizations
API key authentication
Body
application/json
A request to get the total count of incident events matching a filter
Filter configuration for incident events
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/incidents:list-incident-events-total-count';
let options = {
method: 'POST',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"filter":{"contextualLabels":[{"key":"string","value":{"contextualLabelValues":["string"]}}],"displayLabels":[{"key":"string","value":{"displayLabelValues":["string"]}}],"isMuted":true,"labels":{"metaLabels":[{"key":"key","value":"value"}],"operator":"FILTER_OPERATOR_OR_OR_UNSPECIFIED"},"name":"string","severity":["INCIDENT_SEVERITY_UNSPECIFIED"],"status":["INCIDENT_STATUS_UNSPECIFIED"],"timestamp":{"endTime":"2019-08-24T14:15:22Z","startTime":"2019-08-24T14:15:22Z"}}}'
};
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/v1/incidents:list-incident-events-total-count';
let options = {
method: 'POST',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"filter":{"contextualLabels":[{"key":"string","value":{"contextualLabelValues":["string"]}}],"displayLabels":[{"key":"string","value":{"displayLabelValues":["string"]}}],"isMuted":true,"labels":{"metaLabels":[{"key":"key","value":"value"}],"operator":"FILTER_OPERATOR_OR_OR_UNSPECIFIED"},"name":"string","severity":["INCIDENT_SEVERITY_UNSPECIFIED"],"status":["INCIDENT_STATUS_UNSPECIFIED"],"timestamp":{"endTime":"2019-08-24T14:15:22Z","startTime":"2019-08-24T14:15:22Z"}}}'
};
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
A request to get the total count of incident events matching a filter
Filter configuration for incident events
Show child attributes
Was this page helpful?