Skip to main content

copilot_user_one_day_usage_metrics

Creates, updates, deletes, gets or lists a copilot_user_one_day_usage_metrics resource.

Overview

Namecopilot_user_one_day_usage_metrics
TypeResource
Idgithub.copilot.copilot_user_one_day_usage_metrics

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
download_linksarrayThe URLs to download the Copilot usage metrics report for the enterprise/organization for the specified day.
report_daystring (date)The day of the report in YYYY-MM-DD format.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
copilot_users_one_day_usage_metricsselectenterprise, dayUse this endpoint to retrieve download links for the Copilot user usage metrics report for a specific day. The report provides detailed user-level usage data and engagement metrics for Copilot features across the enterprise.

The report contains user-specific metrics for the specified day, including individual user engagement statistics, feature usage patterns, and adoption metrics broken down by user. This report allows authorized users to analyze Copilot usage at the user level to understand adoption patterns and identify opportunities for increased engagement.

Reports are generated daily and made available for download through signed URLs with a limited expiration time. The response includes download links to the report files, along with the specific date of the report. The report covers a complete day for which data has been processed. Reports are available starting from October 10, 2025, and historical data can be accessed for up to 1 year from the current date.

Enterprise owners, billing managers, and authorized users with fine-grained "View Enterprise Copilot Metrics" permission can retrieve Copilot metrics reports for the enterprise. OAuth app tokens and personal access tokens (classic) need either the manage_billing:copilot or read:enterprise scopes to use this endpoint.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
daystring (date)The day to request data for, in YYYY-MM-DD format.
enterprisestringThe slug version of the enterprise name.

SELECT examples

Use this endpoint to retrieve download links for the Copilot user usage metrics report for a specific day. The report provides detailed user-level usage data and engagement metrics for Copilot features across the enterprise.

The report contains user-specific metrics for the specified day, including individual user engagement statistics, feature usage patterns, and adoption metrics broken down by user. This report allows authorized users to analyze Copilot usage at the user level to understand adoption patterns and identify opportunities for increased engagement.

Reports are generated daily and made available for download through signed URLs with a limited expiration time. The response includes download links to the report files, along with the specific date of the report. The report covers a complete day for which data has been processed. Reports are available starting from October 10, 2025, and historical data can be accessed for up to 1 year from the current date.

Enterprise owners, billing managers, and authorized users with fine-grained "View Enterprise Copilot Metrics" permission can retrieve Copilot metrics reports for the enterprise. OAuth app tokens and personal access tokens (classic) need either the manage_billing:copilot or read:enterprise scopes to use this endpoint.

SELECT
download_links,
report_day
FROM github.copilot.copilot_user_one_day_usage_metrics
WHERE enterprise = '{{ enterprise }}' -- required
AND day = '{{ day }}' -- required
;