实时运行日志-ws
GET
api/v1/logs/ws/{chainId}/{clientId}- 这是一个ws接口,可以实时获取每一个节点的输入/输出执行日志
- 这个接口会实时推送其他规则链或者请求的日志,前行需要根据规则链ID和msgID进行过滤
请求参数
Path 参数
chainId
string
规则链ID
clientId
string
ws客户端ID
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
chainId
string
规则链ID
flowType
string
流类型IN/OUT
nodeId
string
节点ID
relationType
string
关系
err
string
错误
ts
integer
时间戳
msg
object (消息)
消息
ts
integer
消息时间
id
string
消息ID
dataType
string
数据类型
type
string
消息类型
data
string
消息负荷
metadata
object
消息元数据
示例
{
"chainId": "52",
"flowType": "esse minim consectetur ipsum Ut",
"nodeId": "71",
"relationType": "veniam culpa labore",
"err": "commodo",
"ts": 53,
"msg": {
"ts": 32,
"id": "6WO0chbQmYbv6vhn0Tz7S",
"dataType": "reprehenderit irure qui sunt occaecat",
"type": "id esse anim occaecat",
"data": "ullamco adipisicing occaecat proident ad",
"metadata": {
"field1": "quis nostrud ullamco consectetur aute"
}
}
}
最后修改时间: 2 个月前