官方更新 GitHub Changelog Fri, 17 Jul 2026 正文 ok 226 words

GitHub Copilot 应用使用数据现已纳入用量指标 API

英文标题:GitHub Copilot app now available in the usage metrics API

GitHub 的 Copilot 用量指标 API 现在开始报告 GitHub Copilot 应用的使用情况,企业在 1 天和 28 天报告中新增了 `daily_active_copilot_app_users` 和 `totals_by_copilot_app` 两个字段,可分别查看日活用户数以及详细的会话、请求和令牌消耗数据。此前这部分活动未被监控,现在管理员可以在同一 API 中统一了解 Copilot 应用的采用广度与资源消耗。这一更新为企业评估 Copilot 应用价值、优化许可分配和成本管理提供了关键的数据支持。
打开原文相关 2 · 机会 5
media16.2 KB media129.8 KB

中文

Copilot 用量指标 API 现在会在企业和组织的 1 天和 28 天报告中提供 GitHub Copilot 应用的使用数据。这让企业和组织管理员除了已获取的 IDE、聊天、代码审查和编码代理指标之外,还能一并洞察该应用的活动情况。

企业和组织报告现在包含两个新字段:

  • daily_active_copilot_app_users:指定日期内活跃于 Copilot 应用的不同用户数量。
  • totals_by_copilot_app:一个专门的 GitHub Copilot 应用分区,报告 session_count、request_count、prompt_count 以及令牌用量明细(即 output_tokens_sum、prompt_tokens_sum 和 avg_tokens_per_request)。

此前,GitHub Copilot 应用的活动并未在使用情况报告中体现。借助这些字段,企业及组织管理员可以在已有的 Copilot 用量指标 API 中,全面了解应用的采用广度(例如不同活跃用户数、会话量和请求量,以及令牌消耗)。

  • 这些字段会出现在企业和组织的 1 天和 28 天报告中。
  • GitHub Copilot 应用的使用数据会在其自身的 totals_by_copilot_app 分区中报告,并与通用的功能、模型及语言汇总数据以及代码行数指标分开。
  • 对于没有任何 GitHub Copilot 应用活动的企业或组织,daily_active_copilot_app_users 和 totals_by_copilot_app 均返回 null,因此现有集成不会受到影响。

请访问 Copilot 用量指标 API 文档 开始使用。

English / 原文

The Copilot usage metrics API now reports the GitHub Copilot app usage in the enterprise and organization 1-day and 28-day reports. This gives enterprise and organization admins visibility into the app’s activity alongside the IDE, chat, code review, and coding agent metrics they already retrieve.

The enterprise and organization reports now include two new fields:

  • daily_active_copilot_app_users : The number of distinct users active in the Copilot app on a given day.
  • totals_by_copilot_app : A dedicated GitHub Copilot app section reporting session_count, request_count, prompt_count, and a token_usage breakdown (i.e., output_tokens_sum, prompt_tokens_sum, and avg_tokens_per_request).

The GitHub Copilot app activity was not previously represented in usage reporting. With these fields, enterprise and organization admins can see how broadly the app is being adopted (e.g., distinct active users, session and request volume, and token consumption) in the same API they already use for the rest of their Copilot usage metrics.

  • These fields appear in the enterprise and organization 1-day and 28-day reports.
  • The GitHub Copilot app usage is reported in its own totals_by_copilot_app section and is kept separate from the generic feature, model, and language totals, as well as from lines-of-code metrics.
  • Enterprises or organizations with no GitHub Copilot app activity report null for both daily_active_copilot_app_users and totals_by_copilot_app, so existing integrations are unaffected.

Visit the Copilot usage metrics API documentation to get started.