You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/copilot/Client.swift
+197Lines changed: 197 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2015,4 +2015,201 @@ public struct Client: APIProtocol {
2015
2015
}
2016
2016
)
2017
2017
}
2018
+
/// Get a summary of Copilot usage for a team
2019
+
///
2020
+
/// > [!NOTE]
2021
+
/// > This endpoint is in beta and is subject to change.
2022
+
///
2023
+
/// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE
2024
+
/// for users within a team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.
2025
+
/// See the response schema tab for detailed metrics definitions.
2026
+
///
2027
+
/// The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,
2028
+
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
2029
+
/// they must have telemetry enabled in their IDE.
2030
+
///
2031
+
/// > [!NOTE]
2032
+
/// > This endpoint will only return results for a given day if the team had five or more members with active Copilot licenses, as evaluated at the end of that day.
2033
+
///
2034
+
/// Organization owners for the organization that contains this team, and owners and billing managers of the parent enterprise can view Copilot usage metrics for a team.
2035
+
///
2036
+
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint.
0 commit comments