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

Authorizations

Authorization
string
header
required

API key authentication

Query Parameters

filter
object

Filter configuration for incidents

group_bys
Incident group by · object[]
  • Incident group by
  • Incident group by
pagination
object

Pagination parameters for list requests

Response

Response containing aggregated incident data and pagination information

incidentAggs
Incident aggregation · object[]
required
pagination
object
required

Pagination information for list responses