GetRLLogContext - 查询 DLC 作业 RL 日志上下文

更新时间:
复制 MD 格式

获取DLC作业某条异常日志的上下文。

接口说明

获取 DLC 作业某条异常日志的上下文

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

GET /api/v1/jobs/{JobId}/rltrace/logcontext HTTP/1.1

路径参数

名称

类型

必填

描述

示例值

JobId

string

是

作业 ID

dlc5yfk7eyg95lac

请求参数

名称

类型

必填

描述

示例值

AnchorTime

string

是

锚点日志行时间(UTC RFC3339,秒级)

2026-08-05T16:36:55Z

AnchorMessage

string

否

锚点日志文案(回退路径按前缀匹配定位;来自 Fatal[].RawMessage)

[rank0]: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 2.00 GiB

CollectTime

string

否

锚点行 agent_collect_time(纳秒字符串,来自 Fatal[].CollectNs);提供时走精确路径

1785947815190122847

返回参数

名称

类型

描述

示例值

object

Schema of Response

JobId

string

作业 ID

dlc-20210126170216-xxxxxxxx

Lines

array

上下文行(时间升序)

RLLogContextLine

一行 log 文件内容

100

AnchorIndex

integer

锚点行在 Lines 中的下标;回退路径未匹配到锚点时为空(Lines 为全窗口行)

100

Mode

string

agent_collect_time(精确路径)/ raw_time_cluster(回退路径)

agent_collect_time

Truncated

boolean

回退路径原始行达到 5000 上限时为 true

False

RequestId

string

请求 ID

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

示例

正常返回示例

JSON格式

{
  "JobId": "dlc-20210126170216-xxxxxxxx",
  "Lines": [
    {
      "TimestampMs": 1787293208012,
      "Message": "CUDA out of memory. Tried to allocate 2.00 GiB"
    }
  ],
  "AnchorIndex": 100,
  "Mode": "agent_collect_time",
  "Truncated": true,
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

错误码

HTTP status code

错误码

错误信息

描述

400 InvalidParameter The specified parameter is not valid.
500 InternalServerError An internal error has occurred. Try again later.
403 OperationForbidden You are not authorized to access the specified job.

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情。