Versions in this module Expand all Collapse all v1 v1.4.0 Apr 9, 2026 Changes in this version type Client + func (c *Client) GetMetrics(ctx context.Context) (*UsageReport, error) + func (c *Client) GetTotalSeats(ctx context.Context) (int64, error) + type FeatureTotals struct + CodeAcceptanceActivityCount int + CodeGenerationActivityCount int + Feature string + LocAddedSum int + LocDeletedSum int + LocSuggestedToAddSum int + LocSuggestedToDeleteSum int + UserInitiatedInteractionCount int + type IDETotals struct + CodeAcceptanceActivityCount int + CodeGenerationActivityCount int + IDE string + LocAddedSum int + LocDeletedSum int + LocSuggestedToAddSum int + LocSuggestedToDeleteSum int + UserInitiatedInteractionCount int + type LanguageFeatureTotals struct + CodeAcceptanceActivityCount int + CodeGenerationActivityCount int + Feature string + Language string + LocAddedSum int + LocDeletedSum int + LocSuggestedToAddSum int + LocSuggestedToDeleteSum int + type PullRequestTotals struct + TotalAppliedSuggestions int + TotalCreated int + TotalCreatedByCopilot int + TotalMerged int + TotalReviewed int + TotalReviewedByCopilot int + TotalSuggestions int + type UsageReport struct + CodeAcceptanceActivityCount int + CodeGenerationActivityCount int + DailyActiveCLIUsers int + DailyActiveUsers int + Day string + EnterpriseID string + LocAddedSum int + LocDeletedSum int + LocSuggestedToAddSum int + LocSuggestedToDeleteSum int + MonthlyActiveAgentUsers int + MonthlyActiveChatUsers int + MonthlyActiveUsers int + PullRequests PullRequestTotals + TotalsByFeature []FeatureTotals + TotalsByIDE []IDETotals + TotalsByLanguageFeature []LanguageFeatureTotals + UserInitiatedInteractionCount int + WeeklyActiveUsers int v1.3.0 Nov 20, 2025 v1.2.1 Nov 20, 2025 v1.2.0 Jul 29, 2025 v1.1.2 Jul 16, 2025 v1.1.1 Jun 20, 2025 Changes in this version type Client + func (c *Client) GetCopilotMetrics(since *string) ([]CopilotMetrics, error) + type CopilotMetrics struct + CopilotDotcomChat DotcomChat + CopilotDotcomPRs DotcomPullRequests + CopilotIDEChat IDEChat + CopilotIDECodeCompletions IDECodeCompletions + Date string + TotalActiveUsers int + TotalEngagedUsers int + type DotcomChat struct + Models []Model + TotalEngagedUsers int + type DotcomPullRequests struct + Repositories []Repository + TotalEngagedUsers int + type Editor struct + Models []Model + Name string + TotalEngagedUsers int + type IDEChat struct + Editors []Editor + TotalEngagedUsers int + type IDECodeCompletions struct + Editors []Editor + Languages []Language + TotalEngagedUsers int + type Language struct + Name string + TotalAcceptances int + TotalEngagedUsers int + TotalLinesAccepted int + TotalLinesSuggested int + TotalSuggestions int + type Model struct + CustomTrainingDate *string + IsCustomModel bool + Languages []Language + Name string + TotalChatCopies int + TotalChatInsertions int + TotalChats int + TotalEngagedUsers int + type Repository struct + Models []Model + Name string + TotalEngagedUsers int v1.1.0 Apr 5, 2025 Changes in this version + type Client struct + func NewClient(cfg *config.Config) (*Client, error) + func (c *Client) GetBilling() (CopilotBilling, error) + func (c *Client) GetBillingSeats() (CopilotBillingSeats, error) + func (c *Client) GetCopilotUsage() ([]CopilotUsage, error) v1.0.6 Dec 3, 2024 v1.0.5 Sep 26, 2024 v1.0.4 Sep 6, 2024 v1.0.3 Aug 30, 2024 Changes in this version type CopilotUsage + TotalActiveChatUsers int + TotalChatAcceptance int + TotalChatTurns int v1.0.2 Aug 3, 2024 Changes in this version + type ParentType struct + ID int + Name string v1.0.1 Jun 19, 2024 v1.0.0 Feb 21, 2024 Changes in this version + type CopilotAssignee struct + AvatarURL string + EventsURL string + FollowersURL string + FollowingURL string + GistsURL string + GravatarID string + HtmlURL string + Id int + Login string + NodeId string + OrganizationsURL string + ReceivedEventsURL string + ReposURL string + SiteAdmin bool + StarredURL string + SubscriptionsURL string + Type string + URL string + type CopilotAssigneeTeam struct + Description string + Email string + HtmlURL string + Id int + MembersURL string + Name string + NodeId string + NotificationSettings string + Parent string + Permission string + Privacy string + RepositoriesURL string + Slug string + URL string + type CopilotBilling struct + PublicCodeSuggestions string + SeatBreakdown SeatBreakdown + SeatManagementSetting string + type CopilotBillingSeat struct + Assignee CopilotAssignee + AssigningTeam CopilotAssigneeTeam + CreatedAt string + LastActivityAt string + LastActivityEditor string + PendingCancellationDate string + UpdatedAt string + type CopilotBillingSeats struct + Seats []CopilotBillingSeat + TotalSeats int + type CopilotUsage struct + Breakdown []LangBreakdown + Day string + TotalAcceptancesCount int + TotalActiveUsers int + TotalLinesAccepted int + TotalLinesSuggested int + TotalSuggestionsCount int + type GitHubClient struct + Organization string + func NewGitHubClient(conf config.ExporterConfig) (*GitHubClient, error) + func (c *GitHubClient) GetBilling() (CopilotBilling, error) + func (c *GitHubClient) GetBillingSeats() (CopilotBillingSeats, error) + func (c *GitHubClient) GetCopilotUsage() ([]CopilotUsage, error) + type LangBreakdown struct + AcceptancesCount int + ActiveUsers int + Editor string + Language string + LinesAccepted int + LinesSuggested int + SuggestionsCount int + type SeatBreakdown struct + ActiveThisCycle int + AddedThisCycle int + InactiveThisCycle int + PendingCancellation int + PendingInvitation int + Total int