跳转到内容

获取日志

请求方式: POST

请求地址: /api/v1/run/last/log

使用 Content-Type: application/json 发送请求体。

{
"run_slug": "01KKJYJ4HH0R9K7XD856MAE1WH"
}
参数示例值参数类型是否必填参数描述
run_slug01KKJYJ4HH0R9K7XD856MAE1WHString运行唯一标识
{
"code": 0,
"message": "success",
"data": {
"all_logs_url": "https://smpfile.coreclaw.com/log/all_log_7cb43d81-38d5-47b6-a313-4e1423d4c28a_1773383790454",
"list": [
{
"type": 2,
"group": "28596067108978688",
"content": "SYSTEM: Subtask-[28596067108978688] - Preparing the execution environment.",
"timestamp": 1773383784438
},
{
"type": 2,
"group": "28596067108978688",
"content": "SYSTEM: Subtask-[28596067108978688] - Running...",
"timestamp": 1773383784958
},
{
"type": 2,
"group": "28596067108978688",
"content": "SYSTEM: Subtask-[28596067108978688] - Execution completed.",
"timestamp": 1773383790211
},
{
"type": 2,
"group": "28596067108913152",
"content": "All subtasks have completed execution! Total 1 subtasks: 1 succeeded, 0 failed.",
"timestamp": 1773383790498
}
],
"result_count": 4
}
}
参数示例值类型描述
code0Integer查看帮助
messagesuccessString-
data-Object-
└─ all_logs_url-String完整日志URL
└─ list-Array日志简要列表
result_count4Integer采集数据总条数
参数示例值类型描述
type1Integer日志类型
1.Debug
2.Info
3.Warn
4.Error
group-String日志分组标识
content-String日志内容
timestamp-Integer日志时间戳(毫秒)