StatisticQuery — data-service
Section titled “StatisticQuery — data-service”كل استجابة أدناه تصل داخل الغلاف الموحَّد {success, result}؛ وتتجاوزه التنزيلات والتدفّقات بنيويًّا. راجع استدعاء واجهة HTTP API.
اللقطة:
data-service.json· data-service 1.11.0 · 11 عملية
GET /v1/entities/{entity}/statistic-queries
Section titled “GET /v1/entities/{entity}/statistic-queries”find
— List statistic queries that belongs to a specific entity
المعاملات
| الاسم | الموضع | مطلوب | النوع |
|---|---|---|---|
entity | path | نعم | string |
filter | query | لا | — |
الاستجابات
| الحالة | الوصف |
|---|---|
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
المعاملات
| الاسم | الموضع | مطلوب | النوع |
|---|---|---|---|
entity | path | نعم | string |
جسم الطلب: NewStatisticQuery
الاستجابات
| الحالة | الوصف |
|---|---|
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
المعاملات
| الاسم | الموضع | مطلوب | النوع |
|---|---|---|---|
entity | path | نعم | string |
id | path | نعم | string |
الاستجابات
| الحالة | الوصف |
|---|---|
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
المعاملات
| الاسم | الموضع | مطلوب | النوع |
|---|---|---|---|
entity | path | نعم | string |
id | path | نعم | string |
filter | query | لا | — |
الاستجابات
| الحالة | الوصف |
|---|---|
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
المعاملات
| الاسم | الموضع | مطلوب | النوع |
|---|---|---|---|
entity | path | نعم | string |
id | path | نعم | string |
جسم الطلب: StatisticQueryPartialExcluding_id_
الاستجابات
| الحالة | الوصف |
|---|---|
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
المعاملات
| الاسم | الموضع | مطلوب | النوع |
|---|---|---|---|
entity | path | نعم | string |
where | query | لا | — |
الاستجابات
| الحالة | الوصف |
|---|---|
200 | StatisticQuery model count. |
GET /v1/statistic-queries
Section titled “GET /v1/statistic-queries”findAll
— List all statistic queries in the system
المعاملات
| الاسم | الموضع | مطلوب | النوع |
|---|---|---|---|
filter | query | لا | — |
الاستجابات
| الحالة | الوصف |
|---|---|
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
المعاملات
| الاسم | الموضع | مطلوب | النوع |
|---|---|---|---|
id | path | نعم | string |
الاستجابات
| الحالة | الوصف |
|---|---|
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
المعاملات
| الاسم | الموضع | مطلوب | النوع |
|---|---|---|---|
ids | query | لا | array of string |
الاستجابات
| الحالة | الوصف |
|---|---|
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
المعاملات
| الاسم | الموضع | مطلوب | النوع |
|---|---|---|---|
where | query | لا | — |
الاستجابات
| الحالة | الوصف |
|---|---|
200 | StatisticQuery model count. |
GET /v2/entities/{entity}/statistic-queries/{id}/execute
Section titled “GET /v2/entities/{entity}/statistic-queries/{id}/execute”executeStatisticQueryV2
المعاملات
| الاسم | الموضع | مطلوب | النوع |
|---|---|---|---|
entity | path | نعم | string |
id | path | نعم | string |
where | query | لا | — |
الاستجابات
| الحالة | الوصف |
|---|---|
200 | execute specific statistic query |
المنصّة 1.10.0 · الواجهة الخلفية 1.11.0-alpha.11 · واجهة الويب 1.11.0-alpha.6 · الجوّال 1.10.2 · المخطّط 1.11.8 · البوّابة 2.6.11 · خادم MCP 0.2.0 · مصدر بيانات Grafana 1.2.0بناء التوثيق 2026-11-27