Skip to content

Get Device Property Chart List

API Address:/v2/quecdatastorage/enduserapi/getPropertyChartList

Request Method:GET

Request Data Type:application/x-www-form-urlencoded

Response Data Type:*/*

API Description:Get device property chart list

Request Parameters:

Parameter NameParameter DescriptionRequest TypeRequiredData TypeSchema
attributeCodeThing model property identifier, use English comma to separate when querying multiple properties, maximum 10 propertiesquerytruestring
dkDevice Keyquerytruestring
endTimestampEnd time (millisecond timestamp)querytrueinteger(int64)
pkProduct Keyquerytruestring
startTimestampStart time (millisecond timestamp)querytrueinteger(int64)
countTypeAggregation type (default 3): 1-Maximum 2-Minimum 3-Average 4-Difference 5-Totalqueryfalseinteger(int32)
gatewayDkGateway device's Device Keyqueryfalsestring
gatewayPkGateway device's Product Keyqueryfalsestring
timeGranularityStatistical time granularity (default 2): 1-Month 2-Day 3-Hourqueryfalseinteger(int32)
timeStrQuery datequeryfalsestring

Response Status:

Status CodeDescriptionSchema
200Successfully retrieved device property chart listReturn registration code response data of list of property chart output parameters
401Unauthorized
403Forbidden
404Not Found
5032Token verification failed
5106Please enter token

Response Parameters:

Parameter NameParameter DescriptionTypeSchema
codeResponse status codeinteger(int32)integer(int32)
dataResponse dataarrayProperty chart output parameter
  propertyCodeThing model codestring
  xaxisDataRecord timearraystring
  xaxisDataTsarrayinteger
  yaxisDataProperty contentarrayobject
extMsgExtended messagestring
msgResponse messagestring

Response Example:

javascript
{
	"code": 0,
	"data": [
		{
			"propertyCode": "",
			"xaxisData": [],
			"xaxisDataTs": [],
			"yaxisData": []
		}
	],
	"extMsg": "",
	"msg": ""
}