获取场景日志列表
POST
/api/v1/things/rule/scene/log/index
things/rule/scene/logthingsRuleSceneLog
请求参数
Header 参数
Ithings-Project-Id
string
可选
默认值:
{{Ithings-Project-Id}}
Ithings-Token
string
可选
默认值:
{{iThings-token}}
app-code
string
可选
默认值:
{{appCode}}
device-id
string
可选
Body 参数application/json
page
object (PageInfo)
可选
page
integer <int64>
页码
size
integer <int64>
每页大小
orders
array[object (OrderBy) {2}]
排序
sceneID
integer <int64>
场景id
sceneName
string
场景名称
status
integer <int64>
可选
timeRange
object (TimeRange)
可选
start
integer <int64>
可选
end
integer <int64>
可选
示例
{
"page": {
"page": 0,
"size": 0,
"orders": [
{
"field": "string",
"sort": 0
}
]
},
"sceneID": 0,
"sceneName": "string",
"status": 0,
"timeRange": {
"start": 0,
"end": 0
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/things/rule/scene/log/index' \
--header 'Ithings-Project-Id: {{Ithings-Project-Id}}' \
--header 'Ithings-Token: {{iThings-token}}' \
--header 'app-code: {{appCode}}' \
--header 'device-id;' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
返回code
默认值:
200
msg
string
返回的消息
data
object (SceneLogIndexResp)
可选
list
array[object (SceneLog) {8}]
告警信息
total
integer <int64>
可选
示例
{
"code": "200",
"msg": "string",
"data": {
"list": [
{
"sceneID": 0,
"sceneName": "string",
"areaID": "string",
"createdTime": 0,
"status": 0,
"type": "string",
"trigger": {
"type": "string",
"time": 0,
"device": {
"type": "string",
"productID": "string",
"deviceName": "string",
"deviceAlias": "string",
"dataID": "string",
"dataName": "string",
"value": "string"
}
},
"actions": [
{
"type": "string",
"status": 0,
"code": 0,
"msg": "string",
"msgToken": "string",
"delay": 0,
"device": {
"type": "string",
"productID": "string",
"productName": "string",
"deviceName": "string",
"deviceAlias": "string",
"values": [
{
"dataID": "string",
"dataName": "string",
"value": "string"
}
]
},
"alarm": {
"mode": "string"
},
"scene": {
"sceneID": 0,
"sceneName": "string"
}
}
]
}
],
"total": 0
}
}
修改于 2025-03-25 08:05:06