Last Updated on : 2023-06-15 05:10:33
Get an overview of activated device data based on the product ID.
GET: /v1.0/devices/active-datas-survey
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
product_id | String | query | false | The product ID (PID). If you do not set the parameter, all products under the specified IoT account of this clientId are returned. |
Parameter name | Type | Description |
---|---|---|
result | JSONObject | The returned result. |
Description of result
Parameter name | Type | Description |
---|---|---|
today_active | String | The number of devices activated today. |
yesterday_active | String | The number of devices activated yesterday. |
all_activate | String | The total number of activated devices. |
near7_day_active | String | The number of devices activated in the last seven days. |
last7_day_active | String | The number of devices activated within the seven days starting from 14 days ago. |
compared_with_yesterday_active | String | The difference between the number of devices activated today and that of yesterday. |
GET: /v1.0/devices/active-datas-survey?product_id=123
{
"result": {
"last7_day_active": "8",
"all_activate": "5237",
"near7_day_active": "2",
"today_active": "0",
"yesterday_active": "0"
},
"t": 1545278901275,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback