Last Updated on : 2023-06-15 05:53:13
Query the total energy consumption data in the 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-sum
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
energy_type | String | query | 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 depth. Default value: 0 . |
contain_childs | Boolean | query | false | Indicates whether to contain the data of the child nodes. Default value: true . |
Parameter name | Type | Description |
---|---|---|
result | Float | The total energy consumption. |
GET: /v1.0/iot-03/energy/electricity/space/statistics-sum?energy_action=consume&statistics_type=hour&start_time=2021080422&end_time=2021080423
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback