---
title: "GET /count"
method: GET
path: "/count"
---

# GET /count

`GET /count`

## Request

- Base URL: `https://dev-cloud.acronis.com/api/alert_manager/v1`
- URL: `https://dev-cloud.acronis.com/api/alert_manager/v1/count`
- Auth: OAuth 2
  - Authorization code: `https://dev-cloud.acronis.com/api/2/idp/authorize`
  - Client credentials
  - Password
  - Token URL: `https://dev-cloud.acronis.com/api/2/idp/token` scopes: `urn:acronis.com::alert_manager::viewer`

Fetches the alert counters that may be grouped by optional parameters.

## Query parameters

- `embed_tenants` boolean: If true, alert counters will be grouped by tenants.
- `embed_types` boolean: If true, alert counters will be grouped by alert types. When combined with `embed_severities` alert counters will be grouped first by severities and then by types. This parameter is mutually exclusive with the `embed_categories` parameter.
- `embed_severities` boolean: If true, alert counters will be grouped by alert severities. When combined with `embed_types` alert counters will be grouped first by severities and then by types. This parameter is mutually exclusive with the `embed_categories` parameter.
- `embed_categories` boolean: If true, alert counters will be grouped by alert categories. This parameter is mutually exclusive with the `embed_types` and `embed_severities` parameters.

## Response `200`

Live statistics for current alerts.

- Report: Count report.
  - `severitiesAndTypes` SeveritiesAndTypesEmbed: Alert counters grouped by severity and then by type.
    - `information` CountPerType, required: Alert counters per type while grouping by severity as well.
      - `total` integer, required
      - `types` TypesEmbed: Alert counters per alert type. Object keys are identifiers of alert types, values are counters of alerts of these types.
    - `warning` CountPerType, required: Alert counters per type while grouping by severity as well.
      - `total` integer, required
      - `types` TypesEmbed: Alert counters per alert type. Object keys are identifiers of alert types, values are counters of alerts of these types.
    - `error` CountPerType, required: Alert counters per type while grouping by severity as well.
      - `total` integer, required
      - `types` TypesEmbed: Alert counters per alert type. Object keys are identifiers of alert types, values are counters of alerts of these types.
    - `critical` CountPerType, required: Alert counters per type while grouping by severity as well.
      - `total` integer, required
      - `types` TypesEmbed: Alert counters per alert type. Object keys are identifiers of alert types, values are counters of alerts of these types.
  - `severities` SeveritiesEmbed: Alert counters per severity.
    - `information` integer, required
    - `warning` integer, required
    - `error` integer, required
    - `critical` integer, required
  - `categories` CategoriesEmbed: Alert counters per alert category. Object keys are identifiers of alert categories, values are counters of alerts of these categories.
  - `types` TypesEmbed: Alert counters per alert type. Object keys are identifiers of alert types, values are counters of alerts of these types.
  - `tenants` TenantCountResult[]: A list of alert counters per tenant.
    - `locator` string, required: Locator of a tenant.
    - `severitiesAndTypes` SeveritiesAndTypesEmbed: Alert counters grouped by severity and then by type.
      - `information` CountPerType, required: Alert counters per type while grouping by severity as well.
        - `total` integer, required
        - `types` TypesEmbed: Alert counters per alert type. Object keys are identifiers of alert types, values are counters of alerts of these types.
      - `warning` CountPerType, required: Alert counters per type while grouping by severity as well.
        - `total` integer, required
        - `types` TypesEmbed: Alert counters per alert type. Object keys are identifiers of alert types, values are counters of alerts of these types.
      - `error` CountPerType, required: Alert counters per type while grouping by severity as well.
        - `total` integer, required
        - `types` TypesEmbed: Alert counters per alert type. Object keys are identifiers of alert types, values are counters of alerts of these types.
      - `critical` CountPerType, required: Alert counters per type while grouping by severity as well.
        - `total` integer, required
        - `types` TypesEmbed: Alert counters per alert type. Object keys are identifiers of alert types, values are counters of alerts of these types.
    - `severities` SeveritiesEmbed: Alert counters per severity.
      - `information` integer, required
      - `warning` integer, required
      - `error` integer, required
      - `critical` integer, required
    - `categories` CategoriesEmbed: Alert counters per alert category. Object keys are identifiers of alert categories, values are counters of alerts of these categories.
    - `id` string, required: Identifier of a tenant.
    - `types` TypesEmbed: Alert counters per alert type. Object keys are identifiers of alert types, values are counters of alerts of these types.
    - `total` integer, required
  - `total` integer, required

## Other responses

- `400`: Bad request
- `401`: Request is refused because authentication parameters are invalid.
- `403`: A security error due to an issue with tenant security claim: invalid tenant in the access token, tenant resolution failed and etc.

---

[API](https://skmtc.dev/acronis/apis/alert-manager-api.md) - [All operations](https://skmtc.dev/acronis/apis/alert-manager-api/llms.txt) - [OpenAPI document](https://skmtc.dev/acronis/apis/alert-manager-api/revisions/540eec169663?raw)
