Authorizations
API key authentication
Query Parameters
Filter configuration for counting filter options
Response
Response containing counts for different filter options
Counts for different filter options
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/alerts/alerts-general/v3/filter-option-counts?query_filter=SOME_OBJECT_VALUE';
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));{
"counts": {
"enabledCounts": [
{
"count": 25,
"enabled": true
}
],
"entityLabelCounts": [
{
"count": 28,
"labelKey": "environment",
"labelValue": "production"
}
],
"priorityCounts": [
{
"count": 15,
"priority": "ALERT_DEF_PRIORITY_P5_OR_UNSPECIFIED"
}
],
"statusCounts": [
{
"count": 15,
"status": "ALERT_DEF_STATUS_UNSPECIFIED"
}
],
"typeCounts": [
{
"count": 42,
"type": "ALERT_DEF_TYPE_LOGS_IMMEDIATE_OR_UNSPECIFIED"
}
]
}
}Returns counts for different filter options based on the provided filters
Requires the following permissions:
alerts:ReadConfigconst fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/alerts/alerts-general/v3/filter-option-counts?query_filter=SOME_OBJECT_VALUE';
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));{
"counts": {
"enabledCounts": [
{
"count": 25,
"enabled": true
}
],
"entityLabelCounts": [
{
"count": 28,
"labelKey": "environment",
"labelValue": "production"
}
],
"priorityCounts": [
{
"count": 15,
"priority": "ALERT_DEF_PRIORITY_P5_OR_UNSPECIFIED"
}
],
"statusCounts": [
{
"count": 15,
"status": "ALERT_DEF_STATUS_UNSPECIFIED"
}
],
"typeCounts": [
{
"count": 42,
"type": "ALERT_DEF_TYPE_LOGS_IMMEDIATE_OR_UNSPECIFIED"
}
]
}
}API key authentication
Filter configuration for counting filter options
Show child attributes
Response containing counts for different filter options
Counts for different filter options
Show child attributes
Was this page helpful?