Last Updated on : 2023-06-15 06:01:20
Query the data point overview about all device types of a specified tenant.
GET: /v1.0/iot-03/si/datapoint/analysis/survey
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
device_type_codes | String | query | true | The code of a specified device type. |
Parameter name | Type | Description |
---|---|---|
result | List | The returned result. |
Description of result
Parameter name | Type | Description |
---|---|---|
today_data | Double | Today's data. |
compared_yesterday | Double | Compared to yesterday's data. |
month_data | Double | The data of the current month. |
compared_last_month | Double | Compared to the data of the last month. |
year_data | Double | The data of the current year. |
compared_last_year | Double | Compared to the data of the last year. |
device_type_name | String | The name of a specified device type. |
device_type_code | String | The code of a specified device type. |
unit | String | The unit. |
GET: /v1.0/iot-03/si/datapoint/analysis/survey?device_type_codes=water,GAS,electric
{
"result": [
{
"today_data": 0,
"device_type_name": "Electricity",
"compared_last_month": 1,
"month_data": 228.43,
"compared_yesterday": -1,
"year_data": 228.43,
"unit": "KWH",
"device_type_code": "electric",
"compared_last_year": 1
},
{
"today_data": 0,
"device_type_name": "Natural Gas",
"compared_last_month": 1,
"month_data": 22.755,
"compared_yesterday": -1,
"year_data": 22.755,
"unit": "Nm³",
"device_type_code": "GAS",
"compared_last_year": 1
},
{
"today_data": 0,
"device_type_name": "Water",
"compared_last_month": 1,
"month_data": 22.743,
"compared_yesterday": -1,
"year_data": 22.743,
"unit": "T",
"device_type_code": "water",
"compared_last_year": 1
}
],
"t": 1635498073214,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback