Productivity report attributed to individual operators. Uses login sessions and token mappings to link machine data (stitches, threadbreaks, pieces) to specific staff members. Includes a per-operator status breakdown.
Authentication
Requires the X-API-Key header.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
from | integer (query, Unix s) | yes | Start of time range. |
till | integer (query, Unix s) | yes | End of time range. |
machineIds | string (query) | yes | Machine IDs or "all". |
locationId | integer (default 0) | no | Optional location filter. |
shift | string (query, JSON) | no | Optional shift filter. |
includeBobbinThreadbreaks | boolean (default false) | no | Include bobbin threadbreaks. |
operatorId | string (default "all") | no | Filter by operator ID, or "all". |
Response (200 OK)
| Field | Type | Description |
|---|---|---|
data[].operatorId | string | |
data[].operatorName | string | Name from operator_data. |
data[].stitches | integer | |
data[].threadbreaks | integer | |
data[].passings | integer | Completed pattern passes. |
data[].pieces | integer | passes * active heads. |
data[].workTime | integer | Total work time in seconds (operator sessions). |
data[].status[].status | integer | |
data[].status[].counter | integer | |
data[].status[].pastTime | integer | Duration in ms. |