---
title: "Get Queue Stats entities (getTenantQueueStats)"
method: GET
path: "/api/queueStats"
tags: ["queue-stats-controller"]
---

# Get Queue Stats entities (getTenantQueueStats)

`GET /api/queueStats`

Returns a page of queue stats objects that are designed to collect queue statistics for every service. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. 

Available for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.

## Query parameters

- `queueStatsIds` string[], required
- `pageSize` integer, required
- `page` integer, required
- `textSearch` string
- `sortProperty` 'createdTime'
- `sortOrder` 'ASC' | 'DESC'

## Response `200`

OK

- union
  - PageDataQueueStats
    - `data` QueueStats[] — Array of the entities
      - `id` QueueStatsId
        - `id` string, uuid, required — ID of the entity, time-based UUID v1
        - `entityType` 'QUEUE_STATS', required — string
      - `createdTime` integer — Entity creation timestamp in milliseconds since Unix epoch
      - `tenantId` TenantId
        - `id` string, uuid, required — ID of the entity, time-based UUID v1
        - `entityType` 'TENANT', required — string
      - `queueName` string
      - `serviceId` string
    - `totalPages` integer — Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria
    - `totalElements` integer — Total number of elements in all available pages
    - `hasNext` boolean — 'false' value indicates the end of the result set
  - QueueStats[]
    - `id` QueueStatsId
      - `id` string, uuid, required — ID of the entity, time-based UUID v1
      - `entityType` 'QUEUE_STATS', required — string
    - `createdTime` integer — Entity creation timestamp in milliseconds since Unix epoch
    - `tenantId` TenantId
      - `id` string, uuid, required — ID of the entity, time-based UUID v1
      - `entityType` 'TENANT', required — string
    - `queueName` string
    - `serviceId` string

---

[API](https://skmtc.net/thingsboard/apis/thingsboard-rest-api.md) · [All operations](https://skmtc.net/thingsboard/apis/thingsboard-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thingsboard/thingsboard-rest-api/revisions/40169ccdec5c/schema)
