Get workspace productivity
GET/workspaces/:workspace_id/productivity
This endpoint returns the productivity data for the workspace.
Request
Path Parameters
Workspace ID
Query Parameters
Start date of the data
End date of the data
Shift ID
Responses
- 200
- 400
- 500
OK response.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
Array [
]
assets
object[]
Assets of the workspace
Alarm status of the asset
Type of the asset
Availability percentage of the asset
Average cycle time of the asset in seconds
Total bad items produced by the asset
Total good items produced by the asset
ID of the asset
Last data timestamp
True if the asset is missing ideal cycle time for one or more operations
Name of the asset
OEE percentage of the asset
Performance percentage of the asset
Quality percentage of the asset
Status of the asset
Total items produced by the asset
Availability percentage of the workspace
h_items
object[]
Historical items produced for the workspace
Bad items produced
Good items produced
Date of the data
h_oee
object[]
Historical OEE for the workspace
Date of the data
Value of the data
OEE percentage of the workspace
Performance percentage of the workspace
Quality percentage of the workspace
{
"assets": [
{
"alarm": true,
"asset_type": "string",
"availability": 0,
"avg_cycle_time": 0,
"bad_items": 0,
"good_items": 0,
"id": "string",
"last_data_ts": "string",
"missing_ideal_cycle_time": true,
"name": "string",
"oee": 0,
"performance": 0,
"quality": 0,
"status": "string",
"total_items": 0
}
],
"availability": 0,
"h_items": [
{
"bad": 0,
"good": 0,
"ts": "string"
}
],
"h_oee": [
{
"ts": "string",
"value": 0
}
],
"oee": 0,
"performance": 0,
"quality": 0
}
bad_request: Invalid request
- application/json
- Schema
- Example (from schema)
Schema
Message of error
{
"message": "invalid request"
}
internal_error: Internal server error
- application/json
- Schema
- Example (from schema)
Schema
Message of error
{
"message": "invalid request"
}