Check task metric readiness for Grafana
GET
/tasks/metrics-ready/{id}Returns ready=true when nonzero client metrics appear in ClickHouse (or any nonzero metrics if the task has no clients). This prevents the UI from opening a dashboard that contains only server-side zeros before client traffic starts.
Contract
Parameter | Value |
|---|---|
| Section | tasks |
| Authentication | CookieAuth |
| Consumes | not required |
| Produces | application/json |
Parameters
1 parameter
Name | Location | Required | Type | Description |
|---|---|---|---|---|
| id | path | yes | integer | Task ID |
Responses
5 responses
Status | Description | Type |
|---|---|---|
200 | Metric readiness | object |
400 | Invalid ID | object |
401 | Unauthorized | object |
404 | Task not found | object |
500 | Internal server error | object |
{}{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }