Last Updated on : 2023-06-15 05:53:02
Query energy consumption ranking in a space within a specified time range, including the usage, generation, or dump statistics regarding water, electricity, and natural gas.
GET: /v1.0/iot-03/energy/{energy_type}/space/statistics-top
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
energy_type | String | uri | true | The energy type. Set the value to electricity . |
energy_action | String | query | true | The energy behavior. Set the value to consume , representing energy consumption. |
statistics_type | String | query | true | The statistical type. Valid values:
|
start_time | String | query | true | The start time. |
end_time | String | query | true | The end time. |
depth | Integer | query | false | The level of a specified space. Default value: 0 , indicating the first level in the space. The value range is 0 to 9 . |
limit | Integer | query | false | The limited number of statistics. Default value: 10. Maximum value: 100. |
contain_childs | Boolean | query | false | Indicates whether to contain the data of the child nodes. Default value: true . |
Parameter name | Type | Description |
---|---|---|
result | List |
Description of result
Parameter name | Type | Description |
---|---|---|
value | Float | The value of energy consumption. |
space_id | String | The ID of a specified space. |
GET: /v1.0/iot-03/energy/electricity/space/statistics-top?energy_action=consume&statisticsType=day&startTime=20210923&endTime=20210924&depth=1&containChilds=true
{
"result": [
{
"space_id": "xxx",
"value": 1.1
}
],
"t": 1624525873263,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback