Get cabinet consumption
GET/workspaces/:workspace_id/consumption/cabinets/:resource_id
This endpoint returns the consumption data for a single cabinet.
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 [
]
Array [
]
Alarm status of the cabinet
Type of the cabinet
Carbon footprint of the cabinet
Total consumption in kWh for the cabinet output lines
Total energy cost for the cabinet output lines
Current power consumption in kW for the cabinet output lines
Carbon footprint change of the cabinet
Percentage change of the total consumption in kWh for the cabinet output lines in the previous period
Percentage change of the total energy cost for the cabinet output lines in the previous period
h_alarm
object[]
Historical alarm status of the cabinet input lines
Value of the alarm data
Date of the data
h_consumption
object[]
Historical total consumption in kWh for the cabinet output lines
Value of the data for line 0
Value of the data for line 1
Value of the data for line 2
Value of the data for line 0
Value of the data for line 1
Value of the data for line 2
Value of the data for line 3
Value of the data for line 4
Date of the data
h_phase_unbalance
object[]
Historical phase unbalance of the cabinet input lines
Date of the data
Value of the data
h_power
object[]
Historical max power draw in kW for the asset
Value of the data for line 0
Value of the data for line 1
Value of the data for line 2
Value of the data for line 0
Value of the data for line 1
Value of the data for line 2
Value of the data for line 3
Value of the data for line 4
Date of the data
h_status
object[]
Historical status of the cabinet input lines
Value of the idle data
Value of the offline data
Date of the data
Value of the working data
ID of the cabinet
input_cabinet_lines
object[]
Input cabinet lines data
Alarm status of the cabinet line
Name of the cabinet line
Carbon footprint of the cabinet line
Total consumption in kWh for the cabinet line
Total energy cost for the cabinet line
Current power consumption in kW 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
Index of the cabinet line
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
Status of the cabinet line
Last data timestamp
Name of the cabinet
output_cabinet_lines
object[]
Output cabinet lines data
Alarm status of the cabinet line
Name of the cabinet line
Carbon footprint of the cabinet line
Total consumption in kWh for the cabinet line
Total energy cost for the cabinet line
Current power consumption in kW 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
Index of the cabinet line
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
Status of the cabinet line
Phase unbalance of the cabinet input lines
Status of the cabinet
{
"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,
"h_alarm": [
{
"alarm": 0,
"ts": "string"
}
],
"h_consumption": [
{
"line_in_0": 0,
"line_in_1": 0,
"line_in_2": 0,
"line_out_0": 0,
"line_out_1": 0,
"line_out_2": 0,
"line_out_3": 0,
"line_out_4": 0,
"ts": "string"
}
],
"h_phase_unbalance": [
{
"ts": "string",
"value": 0
}
],
"h_power": [
{
"line_in_0": 0,
"line_in_1": 0,
"line_in_2": 0,
"line_out_0": 0,
"line_out_1": 0,
"line_out_2": 0,
"line_out_3": 0,
"line_out_4": 0,
"ts": "string"
}
],
"h_status": [
{
"idle": 0,
"offline": 0,
"ts": "string",
"working": 0
}
],
"id": "string",
"input_cabinet_lines": [
{
"alarm": true,
"cabinet_line_name": "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,
"index": 0,
"power_avg": 0,
"power_max": 0,
"power_min": 0,
"status": "string"
}
],
"last_data_ts": "string",
"name": "string",
"output_cabinet_lines": [
{
"alarm": true,
"cabinet_line_name": "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,
"index": 0,
"power_avg": 0,
"power_max": 0,
"power_min": 0,
"status": "string"
}
],
"phase_unbalance": 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"
}