Agent completed coordinated drain
POST
/tasks/measurement-ready/{id}Records completion of protocol drain on an agent. Once every task agent is ready, the controller synchronously reads the hardware counters, saves a unified snapshot, and only then allows the processes to exit.
Contract
Parameter | Value |
|---|---|
| Section | tasks |
| Authentication | AgentAuth |
| Consumes | application/json |
| Produces | application/json |
Parameters
2 parameters
Name | Location | Required | Type | Description |
|---|---|---|---|---|
| id | path | yes | integer | Task ID |
| request | body | yes | object | Hostname of the ready agent |
{ "hostname": "<string>" }
Responses
4 responses
Status | Description | Type |
|---|---|---|
200 | Number of ready agents | object |
400 | Invalid ID or request body | object |
404 | Task not found | object |
409 | Task is no longer being tracked | object |
{}{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }