1.URL
http://124.223.60.234:8080/system/asset/rule/queryRuleFlowRecordListByRuleId
2.请求参数
2.1请求头
在Headers里面增加token:对应登录验证成功后,data里面对应的tokenId
2.2.参数示例
2.2.1 查询字段
{
"id":"35919059D727458DBDE2B276860D9977",
"pageNum":1,
"pageSize":20
}
2.2.参数说明
| 字段 | 类型 | 说明 | 是否必须 |
|---|---|---|---|
| id | String | 任务的唯一标识 | Y |
| pageNum | int | 当前页 | Y |
| pageSize | int | 每页显示的条数 | Y |
3.接口应答
3.1.返回示例
{
"code": 200,
"message": "Operation succeeded",
"data": {
"total": 359,
"size": 18,
"data": [
{
"orgId": "F940B79790004404AAC277418FC71C5E",
"ruleId": "35919059D727458DBDE2B276860D9977",
"ruleName": "Rule Flow 001",
"terminalId": "EEEE76492D804C1A91524A4997066E4D",
"triggerTime": "2025-09-23T15:43:20.604062Z",
"triggerTimestamp": 1758642200604,
"conditionIds": [
"tempCondition",
"humidityCondition"
],
"actionIds": [
"emailAction",
"newAlarmAction"
],
"params": {
"tempCondition": {
"threshold": 15,
"operator": ">"
},
"humidityCondition": {
"threshold": 40,
"operator": "<"
},
"newAlarmAction": {
"alarmName": "Rule Flow Test"
},
"emailAction": {
"paramsJson": "{\"userName\":\"Li\",\"vehicleNum\":\"TEST0001\",\"terminalNum\":\"13430618239\",\"alarmName\":\"RULE FLOW\",\"dateTime\":\"2025-09-21 00:00:00\",\"url\":\"http://124.223.60.234:9090\",\"contactEmail\":\"leave_iot@163.com\"}",
"subject": "Rule Flow",
"recipients": "daoxunchang@foxmail.com",
"templateContent": "这是一封测试邮件"
}
},
"triggerData": {
"terminalId": "EEEE76492D804C1A91524A4997066E4D",
"terminalNum": "876070369489",
"vehicleId": "5C20C3FB4BA0432594BECB805583E008",
"vehicleNum": "23002-v1.2",
"terminalType": 101,
"locationType": 0,
"acc": 0,
"lat": 0.0,
"lon": 0.0,
"altitude": 180,
"speed": 0.0,
"direction": 0,
"mileage": 0.0,
"lbsCells": "334,20,23312,56788267,-81",
"gnssTime": "2025-09-23T15:42:52Z",
"recvTime": "2025-09-23T15:43:20.600961Z",
"gnssTimestamp": 1758642172000,
"recvTimestamp": 1758642200600,
"battery": 65,
"voltage": 3.719,
"gsmValue": 28,
"gnssValue": 0,
"alarmTypeList": [],
"statusMapJson": "{\"realtime_data\":0,\"normal_data\":0,\"awaken\":0,\"oil_circuit\":0,\"network\":2}",
"expandMapJson":"{\"wifi\":\"[{\\\"rssi\\\":-63,\\\"mac\\\":\\\"8c:61:a3:aa:ad:4e\\\"},{\\\"rssi\\\":-64,\\\"mac\\\":\\\"d0:0f:6d:e7:29:45\\\"},{\\\"rssi\\\":-66,\\\"mac\\\":\\\"58:25:75:f2:56:60\\\"}]\",\"battery_charge\":1,\"auxiliary\":\"{\\\"gnss_time\\\":\\\"000000000000\\\",\\\"acc_duration\\\":0,\\\"position_age\\\":0,\\\"hdop\\\":0}\",\"sensor\":\"{\\\"temp_min\\\":\\\"0.0\\\",\\\"light\\\":0,\\\"accelerometer\\\":\\\"x:0,y:0,z:0\\\",\\\"data_type\\\":0,\\\"temperature\\\":\\\"19.5\\\",\\\"hum_min\\\":10,\\\"humidity\\\":\\\"32.5\\\",\\\"temp_max\\\":\\\"40.0\\\",\\\"hum_max\\\":50,\\\"light_Limit\\\":1}\",\"software_version\":\"DeltaTrak_23002_H1.2_F1.0.2:v04_NET_BETA\",\"device\":\"{\\\"iccid\\\":\\\"89185002210726572445\\\",\\\"imei\\\":\\\"0866876070369489\\\",\\\"device_type\\\":\\\"23002\\\
3.2.返回结果说明
| 字段 | 类型 | 说明 |
|---|---|---|
| code | int | 返回状态 |
| message | String | 返回结果描述 |
| data | object | 返回结果体 |
data 详情
| 字段 | 类型 | 说明 |
|---|---|---|
| total | String | 总条数 |
| size | String | 多少页 |
| data | object | 每页的结果集合 |
data 详情
| 字段 | 类型 | 说明 |
|---|---|---|
| ruleId | String | 任务唯一标识 |
| orgId | String | 组织唯一标识 |
| ruleName | String | 任务名称 |
| terminalId | String | 终端唯一标识 |
| triggerTime | String | 触发时间 |
| triggerTimestamp | long | 触发时间戳 |
| conditionIds | List | 条件组件 |
| actionIds | List | 执行组件 |
| params | Object | 组件参数 |
| triggerData | Object | 触发源 |
| runningMessages | Object | 组件执行状态 |
| executionTime | int | 执行耗时,单位毫秒 |
Author:admin Create time:2025-09-23 23:45
Last editor:admin Update time:2025-10-31 14:50
Last editor:admin Update time:2025-10-31 14:50