Get workspace consumption
GET/workspaces/:workspace_id/consumption
This endpoint returns the consumption data for the entire workspace.
Request
Path Parameters
Workspace 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 [
]
assets
object[]
Assets of the workspace
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
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
ID of the asset
Last data timestamp
Name of the asset
Average power consumption in kW for the asset
Status of the asset
Carbon footprint of the factory
Total consumption in kWh for the workspace
Total energy cost for the workspace
Carbon footprint change of the factory
Total consumption in kWh for the workspace in the previous period
Total energy cost for the workspace in the previous period
h_consumption
object[]
Historical total consumption in kWh for the workspace
Value of the production machine assets
Value of the service machine assets
Date of the data
h_cost
object[]
Historical total energy cost for the workspace
Date of the data
Value of the data
h_power
object[]
Historical max power draw in kW for the workspace
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
Power consumption in kW for the workspace
type_contributions
object[]
Type contributions to the total consumption
Key of the data
Value of the data
{
"assets": [
{
"alarm": true,
"asset_type": "string",
"carbon_footprint": 0,
"consumption": 0,
"cost": 0,
"d_carbon_footprint": 0,
"d_consumption": 0,
"d_cost": 0,
"d_power_avg": 0,
"id": "string",
"last_data_ts": "string",
"name": "string",
"power_avg": 0,
"status": "string"
}
],
"carbon_footprint": 0,
"consumption": 0,
"cost": 0,
"d_carbon_footprint": 0,
"d_consumption": 0,
"d_cost": 0,
"h_consumption": [
{
"production_machine": 0,
"service_machine": 0,
"ts": "string"
}
],
"h_cost": [
{
"ts": "string",
"value": 0
}
],
"h_power": [
{
"power_avg": 0,
"power_max": 0,
"power_min": 0,
"ts": "string"
}
],
"power": 0,
"type_contributions": [
{
"key": "string",
"value": 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"
}