Skip to main content
Get counts for filter options
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"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Query Parameters

query_filter
object

Filter configuration for counting filter options

Response

Response containing counts for different filter options

counts
object

Counts for different filter options