StatisticQuery — data-service
Section titled “StatisticQuery — data-service”Every response below is delivered inside the universal {success, result} envelope; downloads and streams bypass it structurally. See Calling the HTTP API.
Snapshot:
data-service.json· data-service 1.11.0 · 11 operations
GET /v1/entities/{entity}/statistic-queries
Section titled “GET /v1/entities/{entity}/statistic-queries”find
— List statistic queries that belongs to a specific entity
Parameters
| Name | In | Required | Type |
|---|---|---|---|
entity | path | yes | string |
filter | query | no | — |
Responses
| Status | Description |
|---|---|
200 | Array of StatisticQuery model instances |
POST /v1/entities/{entity}/statistic-queries
Section titled “POST /v1/entities/{entity}/statistic-queries”create
— Create new statistic query for specific entity
Parameters
| Name | In | Required | Type |
|---|---|---|---|
entity | path | yes | string |
Request body: NewStatisticQuery
Responses
| Status | Description |
|---|---|
200 | StatisticQuery model instance |
DELETE /v1/entities/{entity}/statistic-queries/{id}
Section titled “DELETE /v1/entities/{entity}/statistic-queries/{id}”deleteById
— Delete statistic query by id
Parameters
| Name | In | Required | Type |
|---|---|---|---|
entity | path | yes | string |
id | path | yes | string |
Responses
| Status | Description |
|---|---|
200 | StatisticQuery DELETE success |
GET /v1/entities/{entity}/statistic-queries/{id}
Section titled “GET /v1/entities/{entity}/statistic-queries/{id}”findById
— Get statistic query by id
Parameters
| Name | In | Required | Type |
|---|---|---|---|
entity | path | yes | string |
id | path | yes | string |
filter | query | no | — |
Responses
| Status | Description |
|---|---|
200 | StatisticQuery model instance |
PATCH /v1/entities/{entity}/statistic-queries/{id}
Section titled “PATCH /v1/entities/{entity}/statistic-queries/{id}”updateById
— Update statistic query by id
Parameters
| Name | In | Required | Type |
|---|---|---|---|
entity | path | yes | string |
id | path | yes | string |
Request body: StatisticQueryPartialExcluding_id_
Responses
| Status | Description |
|---|---|
200 | StatisticQuery PATCH success |
GET /v1/entities/{entity}/statistic-queries/count
Section titled “GET /v1/entities/{entity}/statistic-queries/count”count
— Count statistic queries that belongs to a specific entity
Parameters
| Name | In | Required | Type |
|---|---|---|---|
entity | path | yes | string |
where | query | no | — |
Responses
| Status | Description |
|---|---|
200 | StatisticQuery model count. |
GET /v1/statistic-queries
Section titled “GET /v1/statistic-queries”findAll
— List all statistic queries in the system
Parameters
| Name | In | Required | Type |
|---|---|---|---|
filter | query | no | — |
Responses
| Status | Description |
|---|---|
200 | Array of StatisticQuery model instances |
GET /v1/statistic-queries/{id}
Section titled “GET /v1/statistic-queries/{id}”findByIdWithoutEntity
— Get statistic query by id without entity
Parameters
| Name | In | Required | Type |
|---|---|---|---|
id | path | yes | string |
Responses
| Status | Description |
|---|---|
200 | StatisticQueryDTO model instance |
GET /v1/statistic-queries/by-ids Since 1.10
Section titled “GET /v1/statistic-queries/by-ids Since 1.10”findByIdsWithoutEntity
— Get several statistic queries by id without entity
Parameters
| Name | In | Required | Type |
|---|---|---|---|
ids | query | no | array of string |
Responses
| Status | Description |
|---|---|
200 | Array of StatisticQueryDTO model instances |
GET /v1/statistic-queries/count
Section titled “GET /v1/statistic-queries/count”countAll
— Count all statistic queries in the system
Parameters
| Name | In | Required | Type |
|---|---|---|---|
where | query | no | — |
Responses
| Status | Description |
|---|---|
200 | StatisticQuery model count. |
GET /v2/entities/{entity}/statistic-queries/{id}/execute
Section titled “GET /v2/entities/{entity}/statistic-queries/{id}/execute”executeStatisticQueryV2
Parameters
| Name | In | Required | Type |
|---|---|---|---|
entity | path | yes | string |
id | path | yes | string |
where | query | no | — |
Responses
| Status | Description |
|---|---|
200 | execute specific statistic query |
Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27