Skip to main content
Get incident aggregations
curl --request GET \
  --url https://api.coralogix.com/mgmt/openapi/5/incidents/aggregations/v1 \
  --header 'Authorization: <api-key>'
{
  "incidentAggs": [
    {
      "aggAssignmentsCount": [
        {
          "assignedTo": {
            "userId": "user_id"
          },
          "count": 10
        }
      ],
      "aggMetaLabelsCount": [
        {
          "count": 10,
          "metaLabel": {
            "key": "key",
            "value": "value"
          }
        }
      ],
      "aggSeverityCount": [
        {
          "count": 10
        }
      ],
      "aggStateCount": [
        {
          "count": 10
        }
      ],
      "aggStatusCount": [
        {
          "count": 10
        }
      ],
      "allValuesCount": 123,
      "firstCreatedAt": "2023-11-07T05:31:56Z",
      "groupBysValue": [
        {
          "contextualLabels": {
            "fieldName": "field_name",
            "fieldValue": "field_value"
          }
        }
      ],
      "lastClosedAt": "2023-11-07T05:31:56Z",
      "lastStateUpdateTime": "2023-11-07T05:31:56Z",
      "listIncidentsId": [
        "<string>"
      ]
    }
  ],
  "pagination": {
    "totalSize": 100,
    "nextPageToken": "next_page_token"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.coralogix.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key authentication

Query Parameters

filter
Incident query filter · object

Filter for incidents Filter configuration for incidents

group_bys
Incident group by · object[]

Group by fields for aggregation

pagination
Pagination request · object

Pagination parameters Pagination parameters for list requests

Response

Response containing aggregated incident data and pagination information

incidentAggs
Incident aggregation · object[]
required

List of incident aggregations

pagination
Pagination response · object
required

Pagination information for list responses