Skip to content

查询场景日志列表

接口地址:/v2/cep/enduserapi/selectSceneLogList

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

查询场景日志列表

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
lastExecutionId最后一条执行记录IDbodytrueinteger
limit每页数据条数bodytrueinteger
Authorizationheaderfalsestring
fid家庭ID,开启家居模式必填,否则不填bodyfalsestring

响应状态:

状态码说明schema
200OKApiResult«List«场景日志详情»»
201Created
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int32)integer(int32)
dataarray场景日志详情
  callType调用方式string
  executionId执行记录IDinteger(int64)
  executionList执行详情array执行详情
    actionResultList执行动作详情array执行动作结果
      action场景物模型ActionModelActionModel
        code物模型标识符string
        dataType物模型数据类型string
        id物模型功能IDinteger
        name物模型功能名称string
        subNamestring
        subType读写类型string
        type物模型功能类型string
        unit物模型单位string
        value物模型值object
      executionTime执行时间integer
      reason失败原因string
      result执行结果。成功:true,失败:falseboolean
    deviceKey设备/群组IDstring
    deviceName设备名称/群组名称string
    deviceType设备类型,1:普通设备,2:群组设备integer
    executionResult执行动作结果,1:成功,2:失败,3:部分成功integer
    logoImage场景LOGOstring
    productKey产品KEYstring
  executionResult执行结果,1:成功,2:失败,3:部分成功)integer(int32)
  executionTime执行时间integer(int64)
  sceneIcon场景图标string
  sceneId场景IDstring
  sceneName场景名称string
extMsgstring
msgstring

响应示例:

javascript
{
	"code": 0,
	"data": [
		{
			"callType": "",
			"executionId": 0,
			"executionList": [
				{
					"actionResultList": [
						{
							"action": {
								"code": "",
								"dataType": "",
								"id": 0,
								"name": "",
								"subName": "",
								"subType": "",
								"type": "",
								"unit": "",
								"value": {}
							},
							"executionTime": 0,
							"reason": "",
							"result": true
						}
					],
					"deviceKey": "",
					"deviceName": "",
					"deviceType": 0,
					"executionResult": 0,
					"logoImage": "",
					"productKey": ""
				}
			],
			"executionResult": 0,
			"executionTime": 0,
			"sceneIcon": "",
			"sceneId": "",
			"sceneName": ""
		}
	],
	"extMsg": "",
	"msg": ""
}