Unary · Billing
Lists per-user month-to-date credit usage with effective monthly budgets.
Results are ordered by total credits descending so the highest spenders
appear first, with user_id as a stable tiebreaker. Use cursor pagination
to walk the full set for large organizations.
The default SORT_FIELD_USAGE ordering supports cursor pagination over any
number of users. Sorting by display name, budget, or budget utilization
computes the order in memory and is limited to organizations with at most
10,000 users; beyond that, use SORT_FIELD_USAGE. Because month-to-date
figures are recomputed per request, hold a date range stable across a
paginated walk to keep page tokens valid.
Use this method to:
- Export per-user credit usage to external reporting
- Identify the highest spenders in the organization
- Track per-user budget utilization and over-budget users
Examples
-
List user usage for the current month:
Authorization
Requiresbilling:read_usage permission on the organization.
Endpoint
https://app.ona.com with that domain.
Request example
Request
gitpod.v1.ListEnterpriseUserCreditUsageRequest
Response
gitpod.v1.ListEnterpriseUserCreditUsageResponse
Related types
CumulativeCreditUsage
CumulativeCreditUsage
CumulativeCreditUsage contains cumulative credit consumption totals.
gitpod.v1.CumulativeCreditUsageEnterpriseAIUsageByModel
EnterpriseAIUsageByModel
gitpod.v1.EnterpriseAIUsageByModelSort
Sort
gitpod.v1.ListEnterpriseUserCreditUsageRequest.SortPaginationRequest
PaginationRequest
gitpod.v1.PaginationRequestPaginationResponse
PaginationResponse
gitpod.v1.PaginationResponseUserCreditBudgetUsage
UserCreditBudgetUsage
gitpod.v1.UserCreditBudgetUsageEnterpriseAIUserBudgetPolicySource
EnterpriseAIUserBudgetPolicySource
SortField
SortField
SortOrder
SortOrder