Get machine consumption
GET/workspaces/:workspace_id/consumption/assets/:resource_id
This endpoint returns the consumption data for a single machine.
Request
Path Parameters
Workspace ID
Asset 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 [
]
Alarm status of the asset
Type of the asset
Carbon footprint of the machine
Total consumption in kWh for the asset
Total energy cost for the asset
Average power consumption in kW for the asset
Carbon footprint change of the machine
Percentage change of the total consumption in kWh for the asset in the previous period
Percentage change of the total cost for the asset in the previous period
Percentage change of the average power consumption in kW for the asset in the previous period
Percentage change of the max power consumption in kW for the asset in the previous period
Percentage change of the min power consumption in kW for the asset in the previous period
h_alarm
object[]
Historical alarm status of the asset
Value of the alarm data
Date of the data
h_consumption
object[]
Historical total consumption in kWh for the asset
Date of the data
Value of the data
h_cost
object[]
Historical total energy cost for the asset
Date of the data
Value of the data
h_power
object[]
Historical max power draw in kW for the asset
Average Power consumption in kW for the asset
Max power consumption in kW for the asset
Min power consumption in kW for the asset
Timestamp 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
Last data timestamp
Name of the asset
Average power consumption in kW for the asset
Max power consumption in kW for the asset
Min power consumption in kW for the asset
state_contributions
object[]
State contributions to the total consumption
Key of the data
Value of the data
Status of the asset
{
"alarm": true,
"asset_type": "string",
"carbon_footprint": 0,
"consumption": 0,
"cost": 0,
"current_power": 0,
"d_carbon_footprint": 0,
"d_consumption": 0,
"d_cost": 0,
"d_power_avg": 0,
"d_power_max": 0,
"d_power_min": 0,
"h_alarm": [
{
"alarm": 0,
"ts": "string"
}
],
"h_consumption": [
{
"ts": "string",
"value": 0
}
],
"h_cost": [
{
"ts": "string",
"value": 0
}
],
"h_power": [
{
"power_avg": 0,
"power_max": 0,
"power_min": 0,
"ts": "string"
}
],
"h_status": [
{
"idle": 0,
"offline": 0,
"ts": "string",
"working": 0
}
],
"id": "string",
"last_data_ts": "string",
"name": "string",
"power_avg": 0,
"power_max": 0,
"power_min": 0,
"state_contributions": [
{
"key": "string",
"value": 0
}
],
"status": "string"
}
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"
}