Get maintenance status for every asset
GET/workspaces/:workspace_id/maintenances
Get maintenance status for every asset
Request
Path Parameters
Workspace Id
Responses
- 200
- 400
- 404
- 500
OK response.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Unique identifier for the asset
Name of the asset
Type or category of the asset
Timestamp indicating when the asset was created, formatted as a string
Percentage of cycles condition triggering maintenance
Target cycles for the asset
Unique identifier for the device
Timestamp of the last maintenance performed, formatted as a string
Timestamp indicating the date of the next scheduled maintenance, formatted as a string
Periodic maintenance time in seconds
Remaining periodic time in seconds before maintenance
Percentage of periodic time condition triggering maintenance
Estimated remaining time in seconds before maintenance is required
Target working hours for the asset
Total working time of the asset in seconds
Percentage of working time condition triggering maintenance
[
{
"asset_id": "string",
"asset_name": "string",
"asset_type": "string",
"created_at": "string",
"cycles_maintenance_condition": 0,
"cycles_target": 0,
"device_id": "string",
"last_maintenance": "string",
"next_maintenance_date": "string",
"periodic_maintenance_time": 0,
"periodic_time_left": 0,
"periodic_time_maintenance_condition": 0,
"time_left": 0,
"working_hour_target": 0,
"working_time": 0,
"working_time_maintenance_condition": 0
}
]
bad_request: Invalid Request
- application/json
- Schema
- Example (from schema)
Schema
Message of error
{
"message": "invalid request"
}
not_found: Not Found
- application/json
- Schema
- Example (from schema)
Schema
ID of missing object
Message of error
{
"id": "string",
"message": "object 1 not found"
}
internal_error: Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
Message of error
{
"message": "internal server error"
}