Get operation
GET/workspaces/:workspace_id/operations/:resource_id
This endpoint returns the operation data with the given ID.
Request
Path Parameters
Workspace ID
Operation ID
Query Parameters
Start date of the data range
End date of the data range
Shift ID
Responses
- 200
- 400
- 500
OK response.
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
Array [
]
]
Array [
]
Array [
]
Array [
]
Array [
]
assets
object[]
Assets worked in the operation
Alarm status of the asset
Total seconds in alarm for the asset
Type of the asset
Average cycle energy cost of the asset
Average cycle time of the asset in seconds
Total bad cycles produced by the asset
Total consumption in kWh for the asset
Total energy cost for the asset
Device ID of the asset
Efficiency percentage of the asset
Total good cycles produced by the asset
h_cycles
object[]
Historical cycles produced for the asset
Bad items produced
Good items produced
Date of the data
h_efficiency
object[]
Historical efficiency percentage of the asset
Date of the data
Value of the data
h_status
object[]
Historical status of the asset
Value of the idle data
Value of the offline data
Date of the data
Value of the working data
ID of the asset
Ideal cycle time of the asset in seconds
Last data timestamp
Code of the last operation read by the asset
True if the asset is missing ideal cycle time for the operation
Name of the asset
Performance percentage of the asset
Quality percentage of the asset
Total run time in seconds for the asset
Status of the asset
Total cycles produced by the asset
Average cycle energy cost of the operation
Average cycle time of the operation in seconds
Total bad cycles produced by the operation
Code of the operation
Total consumption in kWh for the operation
Total energy cost for the operation
Efficiency percentage of the operation
Total good cycles produced by the operation
h_avg_cycle_cost
object[]
Historical average cycle energy cost of the operation
Date of the data
Value of the data
h_avg_cycle_time
object[]
Historical average cycle time of the operation in seconds
Date of the data
Value of the data
h_cycles
object[]
Historical cycles produced for the operation
Bad items produced
Good items produced
Date of the data
h_efficiency
object[]
Historical efficiency percentage of the operation
Date of the data
Value of the data
ID of the operation
True if the operation is missing ideal cycle time for one or more assets
Name of the operation
Performance percentage of the operation
Quality percentage of the operation
Total run time in seconds for the operation
Total cycles produced by the operation
{
"assets": [
{
"alarm": true,
"alarm_time": 0,
"asset_type": "string",
"avg_cycle_cost": 0,
"avg_cycle_time": 0,
"bad_cycles": 0,
"consumption": 0,
"cost": 0,
"device_id": "string",
"efficiency": 0,
"good_cycles": 0,
"h_cycles": [
{
"bad": 0,
"good": 0,
"ts": "string"
}
],
"h_efficiency": [
{
"ts": "string",
"value": 0
}
],
"h_status": [
{
"idle": 0,
"offline": 0,
"ts": "string",
"working": 0
}
],
"id": "string",
"ideal_cycle_time": 0,
"last_data_ts": "string",
"last_operation": "string",
"missing_ideal_cycle_time": true,
"name": "string",
"performance": 0,
"quality": 0,
"run_time": 0,
"status": "string",
"total_cycles": 0
}
],
"avg_cycle_cost": 0,
"avg_cycle_time": 0,
"bad_cycles": 0,
"code": "string",
"consumption": 0,
"cost": 0,
"efficiency": 0,
"good_cycles": 0,
"h_avg_cycle_cost": [
{
"ts": "string",
"value": 0
}
],
"h_avg_cycle_time": [
{
"ts": "string",
"value": 0
}
],
"h_cycles": [
{
"bad": 0,
"good": 0,
"ts": "string"
}
],
"h_efficiency": [
{
"ts": "string",
"value": 0
}
],
"id": "string",
"missing_ideal_cycle_time": true,
"name": "string",
"performance": 0,
"quality": 0,
"run_time": 0,
"total_cycles": 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"
}