curl --request GET \
--url https://api.coralogix.com/mgmt/openapi/latest/alerts/alerts-general/v3/filter-option-counts \
--header 'Authorization: <api-key>'{
"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:ReadConfigcurl --request GET \
--url https://api.coralogix.com/mgmt/openapi/latest/alerts/alerts-general/v3/filter-option-counts \
--header 'Authorization: <api-key>'{
"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
Response containing counts for different filter options
Counts for different filter options
Show child attributes
Show child attributes
The count for this alert type
42
ALERT_DEF_TYPE_LOGS_IMMEDIATE_OR_UNSPECIFIED, ALERT_DEF_TYPE_LOGS_THRESHOLD, ALERT_DEF_TYPE_LOGS_ANOMALY, ALERT_DEF_TYPE_LOGS_RATIO_THRESHOLD, ALERT_DEF_TYPE_LOGS_NEW_VALUE, ALERT_DEF_TYPE_LOGS_UNIQUE_COUNT, ALERT_DEF_TYPE_LOGS_TIME_RELATIVE_THRESHOLD, ALERT_DEF_TYPE_METRIC_THRESHOLD, ALERT_DEF_TYPE_METRIC_ANOMALY, ALERT_DEF_TYPE_TRACING_IMMEDIATE, ALERT_DEF_TYPE_TRACING_THRESHOLD, ALERT_DEF_TYPE_FLOW, ALERT_DEF_TYPE_SLO_THRESHOLD Was this page helpful?