AdminMonitorService
查询模型调用日志
查询模型/API 调用日志。用于“日志管理-调用日志”页面,返回用户、模型、通道、状态、Token、计费和延迟等字段。接口使用游标分页,不返回 total。时间范围默认最近 24 小时,显式范围最多 90 天;requestId 查询也必须受时间范围约束以裁剪月度分区。
get/v1/admin/monitor/usage-logs
Query parameters
requestIdstring
请求 ID(UUID)精确过滤;时间范围仍需受约束,省略时后端默认最近 24 小时。
userIdstring
用户 ID;不传表示全部用户。
modelIdstring
模型 ID;不传表示全部模型。
channelIdstring
通道 ID;不传表示全部通道。
status0 | 1 | 2
状态过滤:0 或不传=全部,1=成功,2=失败。
fromstring
起始时间,RFC3339/ISO8601 格式,用量日志时间窗口为 [from, to)。
tostring
结束时间,RFC3339/ISO8601 格式,用量日志时间窗口为 [from, to)。
cursorstring
游标分页标识,使用上一次响应的 nextCursor 获取下一页。
sizeinteger
每页条数,默认 20。
Response
模型调用日志列表,包含 items、hasMore 和 nextCursor。
Changes
No recorded changes to this endpoint across all 1 revision of this API.