跳转到内容

Storage Inspection Module

Storage inspection APIs are operator-facing endpoints for debugging the backing PostgreSQL / Redis state. They are only available when the server profile advertises storage inspection support.

读取 PostgreSQL / Redis 总览。可选参数:serviceName。

分页读取允许检查的 PostgreSQL 表。参数:

  • limit、offset、cursor
  • serviceName
  • q、searchMode=full_row
  • includeRowCount
  • workspaceId、sessionId、runId
  • status、errorCode、recoveryState

支持的 table:workspaces、sessions、runs、messages、run_steps、session_events、session_current_state、tool_calls、hook_runs、artifacts、history_events、archives。

扫描 Redis keys。参数:pattern、cursor、pageSize。

读取单个 Redis key。参数:key。

删除单个 Redis key。参数:key。

批量删除 Redis keys。请求体:keys。

检查 worker affinity 计算结果。参数:sessionId、workspaceId、ownerId、ownerWorkerId。

列出 workspace placement 状态。参数:workspaceId、ownerId、ownerWorkerId、state。

维护接口:清理指定 session queue key。请求体:key。

维护接口:释放指定 session lock key。请求体:key。