运行日志
GET
api/v1/logs/runs请求参数
Query 参数
size
string
分页大小
示例值:
20
page
string
当前页码
示例值:
1
chainId
string
可选
流程ID,如果不填查所有
示例值:
c0a9f4c46679
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
data
array [object {5}]
必需
ruleChain
object (流程DSL)
流程配置快照
id
string
日志ID
startTs
integer
流程开始时间
endTs
integer
流程结束时间
logs
array [object {8}]
每个节点详细日志列表
total
integer
总数
page
integer
当前页码
size
integer
分页大小
示例
{
"data": [
{
"ruleChain": {
"id": "4gTUIATmSJmt",
"name": "test06",
"debugMode": true,
"root": true,
"additionalInfo": {
"createTime": "2024/11/15 14:11:40",
"description": "",
"layoutX": "280",
"layoutY": "280",
"updateTime": "2024/11/15 14:29:54",
"username": "admin"
}
},
"metadata": {
"firstNodeIndex": 0,
"nodes": [
{
"id": "node_2",
"additionalInfo": {
"description": "",
"layoutX": 580,
"layoutY": 290
},
"type": "jsTransform",
"name": "test",
"debugMode": false,
"configuration": {
"jsScript": "return {'msg':msg,'metadata':metadata,'msgType':msgType};"
}
}
],
"connections": []
},
"id": "20241115142956000_210a447c-58af-4b17-86b4-6a281b079238",
"startTs": 1731652196036,
"endTs": 1731652196036,
"logs": [
{
"nodeId": "node_2",
"inMsg": {
"ts": 1731652196036,
"id": "210a447c-58af-4b17-86b4-6a281b079238",
"dataType": "JSON",
"type": "testMsgType",
"data": "{\n \"temperature\":68\n}",
"metadata": {
"Accept": "application/json, text/plain, */*",
"Accept-Encoding": "gzip, deflate",
"Accept-Language": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2",
"Connection": "keep-alive",
"Content-Length": "21",
"Content-Type": "application/json",
"Cookie": "lang=zh-CN",
"Origin": "http://8.134.32.225:9090",
"Priority": "u=0",
"Referer": "http://8.134.32.225:9090/ui/",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0",
"chainId": "4gTUIATmSJmt",
"msgId": "210a447c-58af-4b17-86b4-6a281b079238",
"msgType": "testMsgType",
"username": "admin",
"workDir": "data/workflows/admin/rules"
}
},
"outMsg": {
"ts": 1731652196036,
"id": "210a447c-58af-4b17-86b4-6a281b079238",
"dataType": "JSON",
"type": "testMsgType",
"data": "{\"temperature\":68}",
"metadata": {
"Accept": "application/json, text/plain, */*",
"Accept-Encoding": "gzip, deflate",
"Accept-Language": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2",
"Connection": "keep-alive",
"Content-Length": "21",
"Content-Type": "application/json",
"Cookie": "lang=zh-CN",
"Origin": "http://8.134.32.225:9090",
"Priority": "u=0",
"Referer": "http://8.134.32.225:9090/ui/",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0",
"chainId": "4gTUIATmSJmt",
"msgId": "210a447c-58af-4b17-86b4-6a281b079238",
"msgType": "testMsgType",
"username": "admin",
"workDir": "data/workflows/admin/rules"
}
},
"relationType": "Success",
"err": "",
"logItems": null,
"startTs": 1731652196036,
"endTs": 1731652196036
}
]
}
],
"total": 1
}
最后修改时间: 7 天前