Get cabinet output line consumption
GET/workspaces/:workspace_id/consumption/cabinets/:resource_id/output_lines/:line_index
This endpoint returns the consumption data for a single cabinet output line.
Request
Path Parameters
Workspace ID
Asset ID
Cabinet line index
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 [
]
Alarm status of the cabinet line
ID of the cabinet line
Name of the cabinet line
Name of the cabinet
Carbon footprint of the cabinet line
Total consumption in kWh for the cabinet line
Total energy cost for the cabinet line
Percentage change of the carbon footprint for the cabinet line in the previous period
Percentage change of the total consumption for the cabinet line in the previous period
Percentage change of the total energy cost for the cabinet line in the previous period
Percentage change of the power consumption for the cabinet line in the previous period
Percentage change of the max power consumption for the cabinet line in the previous period
Percentage change of the min power consumption for the cabinet line in the previous period
h_alarm_line
object[]
Historical alarm status of the cabinet line
End date of the data
Start date of the data
Value of the data
h_consumption
object[]
Historical total consumption in kWh for the cabinet line
Date of the data
Value of the data
h_power
object[]
Historical max power draw in kW for the asset
Date of the data
Value of the data
h_status_line
object[]
Historical status of the cabinet line
End date of the data
Start date of the data
Value of the data
Index of the cabinet line
Last data timestamp
Power consumption in kW for the cabinet line
Max power consumption in kW for the cabinet line
Min power consumption in kW for the cabinet line
state_contributions
object[]
State contributions to the line consumption
Key of the data
Value of the data
Status of the cabinet line
{
"alarm": true,
"cabinet_id": "string",
"cabinet_line_name": "string",
"cabinet_name": "string",
"carbon_footprint": 0,
"consumption": 0,
"cost": 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_line": [
{
"end": "string",
"start": "string",
"value": 0
}
],
"h_consumption": [
{
"ts": "string",
"value": 0
}
],
"h_power": [
{
"ts": "string",
"value": 0
}
],
"h_status_line": [
{
"end": "string",
"start": "string",
"value": "string"
}
],
"index": 0,
"last_data_ts": "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"
}