Skip to content

Add Copilot totals_by_3rd_party_agent metrics #4459

Description

@Tens1des

GitHub added an optional totals_by_3rd_party_agent array to Copilot usage metrics reports (enterprise, organization, and per-user, 1-day and 28-day):

https://github.blog/changelog/2026-08-07-copilot-usage-metrics-api-adds-agent-app-activity/

Docs: https://docs.github.com/en/copilot/reference/copilot-usage-metrics/copilot-usage-metrics#agent-apps-metrics-fields

This field is not modeled in CopilotDailyMetrics, CopilotUserDailyMetrics, or CopilotUserPeriodicMetrics, so downloaded reports drop the agent-app breakdown.

I'd like to add a CopilotMetricsThirdPartyAgent type and wire it up on those structs, with tests. session_count would be a pointer so per-user reports can omit it.

Please assign this to me if that sounds good.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions