NpcObservability

查询 NPC 调用记录。List NPC actions.

查询当前仓库内通过 @ 唤起 NPC 的调用记录,含已分发 / 被忽略 / 分发失败三类状态。仅仓库成员(Reporter 及以上)可访问。 Query NPC invocations in the repository, including dispatched / ignored / failed states. Only repository members (Reporter+) can access. 时间窗 start_time/end_time 默认最近 7 天,跨度 ≤ 90 天;page_size 默认 20,最大 100;仅 page=1 返回 total,翻页 total=0。 Time window defaults to last 7 days with span ≤ 90 days; page_size default 20, max 100; total returned only when page=1. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-cnb-history:r 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-cnb-history:r

get/{repo}/-/npc-observability/actions

Request

  • Base URL: https://api.cnb.cool (the document declares no server; this is the origin it was published from)
  • URL: https://api.cnb.cool/{repo}/-/npc-observability/actions
  • Auth: API key in header Authorization

Path parameters

repostring required

仓库路径。Repo path.

Query parameters

end_timestring

结束时间,ISO8601 格式,默认当前时间;与 start_time 跨度 ≤ 90 天。End time in ISO8601, default now. Range <= 90 days.

eventstring

事件类型,仅支持 "issue.comment@npc" 与 "pull_request.comment@npc"。Event type.

npc_namestring

NPC 角色名。NPC role name.

npc_slugstring

NPC 仓库 slug。NPC repo slug.

pageinteger

分页页码,默认 1;仅 page=1 返回 total,翻页 total=0。Pagination page number, default(1); total only returned when page=1.

page_sizeinteger

分页页大小,默认 20,最大 100。Pagination page size, default(20), max(100).

start_timestring

起始时间,ISO8601 格式,例如 "2026-06-10T00:00:00Z",默认 7 天前。Start time in ISO8601, default 7 days ago.

trigger_usernamestring

评论作者用户名。Comment author username.

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.