Skip to content

获取设备属性统计数据

接口地址:/v2/quecdatastorage/enduserapi/getPropertyStatistics

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

获取设备属性统计数据数据

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
attributeCode物模型属性标识符querytruestring
dkDevice Keyquerytruestring
pkProduct Keyquerytruestring
countType聚合类型(默认3):1-最大值 2-最小值 3-平均值 4-差值 5-总值queryfalseinteger(int32)
currentTimestamp当前时间(毫秒时间戳)queryfalseinteger(int64)
gatewayDk网关设备的 Device Keyqueryfalsestring
gatewayPk网关设备的 Product Keyqueryfalsestring
timeGranularities统计时间粒度,查询多个粒度时使用英文逗号分隔(默认1):1-日 2-周 3-月 4-年queryfalsestring
timeStr查询日期queryfalsestring

响应状态:

状态码说明schema
200获取设备属性数据列表成功返回注册码响应数据OfListOf设备属性环比值
401Unauthorized
403Forbidden
404Not Found
5032token 验证失败
5106请输入token

响应参数:

参数名称参数说明类型schema
code响应状态码integer(int32)integer(int32)
data响应数据array设备属性环比值
  statValue当期环比值object
  timeGranularity时间单位 【1-日,2-周,3-月,4-年】integer(int32)
extMsg扩展消息string
msg响应消息string

响应示例:

javascript
{
	"code": 0,
	"data": [
		{
			"statValue": {},
			"timeGranularity": 0
		}
	],
	"extMsg": "",
	"msg": ""
}