Comprehensive summary of performance metrics per machine within a timeframe. Aggregates stitches, threadbreaks, status durations (Running, Stopped, Manual etc.) and computes utilization and SPM. Includes a statusBreakdown map of status code to total seconds.
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 if true. |
Response (200 OK)
| Field | Type | Description |
|---|---|---|
data[].machineId | string | |
data[].machineName | string | |
data[].stitches | integer | |
data[].threadbreaks | integer | |
data[].passes | integer | Number of completed pattern passes. |
data[].pieces | integer | passes * active heads. |
data[].totalTime | integer | Total time in seconds (all status durations). |
data[].productionTime | integer | Production time in seconds. |
data[].utilization | number (float) | (productionTime / totalTime) * 100. |
data[].stitchesPerMinute | number (float) | stitches / (totalTime / 60). |
data[].statusBreakdown | object | Map of status code to total seconds. |