API reference
Dynamic Workers
Code a function holds as text, run in child workers of its own, with only what the function passes them and the function's own network. The binding is loader; this is a project's use of it and the plan's limits.
GET
/v1/projects/{project}/dynamic-workersA project's Dynamic Workers#
The functions with a loader binding, the plan's limits (children at once per function, CPU per child request) and the requests and children started per day (Tehran's).
- Credential
- An API key or a dashboard session
- Roles
- Any role
Parameters
projectstringpathrequiredthe project's name or id
daysintegerqueryhow many days back: 1 to 90 (default 30)
1–90 · default
30
Response
200DynamicWorkersUsage
projectobjectidstringnamestring
limitsobjectchildren_at_onceintegerchild workers one function may have at once (a child idle for a minute no longer counts)
cpu_ms_per_requestintegerCPU milliseconds a child may use per request
functionsobject[]namestringkindstringbindingstring
daysobject[]daystringYYYY-MM-DD, Tehran's
requestsintegerrequests made to children
startedintegerchildren made
totalobjectrequestsintegerstartedinteger
fromstring (date-time)tostring (date-time)
Errors
| Status | Description |
|---|---|
| 400 | Bad request: bad_param |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
Example
curl "https://api.ibel.ai/v1/projects/my-api/dynamic-workers" \
-H "Authorization: Bearer $KEY"