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
+199-2Lines changed: 199 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -232,7 +232,7 @@ public struct Client: APIProtocol {
232
232
/// for all users across organizations with access to Copilot within your enterprise, with a further breakdown of suggestions, acceptances,
233
233
/// and number of active users by editor and language for each day. See the response schema tab for detailed metrics definitions.
234
234
///
235
-
/// The response contains metrics for the prior 28 days. Usage metrics are processed once per day for the previous day,
235
+
/// The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,
236
236
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
237
237
/// they must have telemetry enabled in their IDE.
238
238
///
@@ -416,6 +416,203 @@ public struct Client: APIProtocol {
416
416
}
417
417
)
418
418
}
419
+
/// Get a summary of Copilot usage for an enterprise team
420
+
///
421
+
/// > [!NOTE]
422
+
/// > This endpoint is in beta and is subject to change.
423
+
///
424
+
/// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE
425
+
/// for users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.
426
+
/// See the response schema tab for detailed metrics definitions.
427
+
///
428
+
/// The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,
429
+
/// and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,
430
+
/// they must have telemetry enabled in their IDE.
431
+
///
432
+
/// > [!NOTE]
433
+
/// > This endpoint will only return results for a given day if the enterprise team had five or more members with active Copilot licenses, as evaluated at the end of that day.
434
+
///
435
+
/// Owners and billing managers for the enterprise that contains the enterprise team can view Copilot usage metrics for the enterprise team.
436
+
///
437
+
/// OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint.
0 commit comments