Estimates the total number of physical pieces produced by each machine, accounting for multi-head configurations. Pieces = passes × activeHeads. Active heads are detected automatically from logs, manual overrides or hardware specs.
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". |
shift | string (query, JSON) | no | Optional shift filter. |
Response (200 OK)
| Field | Type | Description |
|---|---|---|
data[].machineId | string | |
data[].machineName | string | |
data[].designId | string | |
data[].designName | string | |
data[].designStitches | integer | |
data[].passes | integer | Completed pattern passes. |
data[].activeHeads | integer | Active embroidery heads. |
data[].pieces | integer | passes * activeHeads. |
data[].totalStitches | integer | pieces * designStitches. |