Interface UserUsageReportServiceAsync
-
- All Implemented Interfaces:
public interface UserUsageReportServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceUserUsageReportServiceAsync.WithRawResponseA view of UserUsageReportServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract UserUsageReportServiceAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract UserUsageReportServiceAsyncwithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. CompletableFuture<UserUsageReportListPageAsync>list(UserUsageReportListParams params)Legacy Get per-user token usage across a date range. abstract CompletableFuture<UserUsageReportListPageAsync>list(UserUsageReportListParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract UserUsageReportServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract UserUsageReportServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
list
CompletableFuture<UserUsageReportListPageAsync> list(UserUsageReportListParams params)
Legacy Get per-user token usage across a date range.
Returns usage per user, ranked by the chosen token metric;
group_by[]orbucket_widthsplits a user across several rows. Use this to see which users consume the most tokens. Only usage attributed to a user account is included, so usage with no user account, such as Code Review usage and Claude Tag usage in Slack channels, is left out. Claude Tag one-to-one direct messages are included, with productclaude-tag, only for members who have connected a Claude account. Available to organizations on a Claude Enterprise plan. Requires an API key with theread:analyticsscope.This endpoint is one of the legacy Claude Enterprise usage and cost reports. For new integrations, use /docs/en/api/beta/organization/analytics/usage/list in the Usage and Cost Analytics API instead. To move an existing integration, see /docs/en/manage-claude/usage-cost-analytics-api#migrate-from-enterprise-analytics-reports.
-
list
abstract CompletableFuture<UserUsageReportListPageAsync> list(UserUsageReportListParams params, RequestOptions requestOptions)
-
-
-
-