Interface UserCostReportServiceAsync
-
- All Implemented Interfaces:
public interface UserCostReportServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceUserCostReportServiceAsync.WithRawResponseA view of UserCostReportServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract UserCostReportServiceAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract UserCostReportServiceAsyncwithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. CompletableFuture<UserCostReportListPageAsync>list(UserCostReportListParams params)Legacy Get per-user cost in USD across a date range. abstract CompletableFuture<UserCostReportListPageAsync>list(UserCostReportListParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract UserCostReportServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract UserCostReportServiceAsync 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<UserCostReportListPageAsync> list(UserCostReportListParams params)
Legacy Get per-user cost in USD across a date range.
Returns cost per user, ranked by spend;
group_by[]orbucket_widthsplits a user across several rows. Use this to see which users account for the most cost. Only cost attributed to a user account is included, so cost 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/cost/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<UserCostReportListPageAsync> list(UserCostReportListParams params, RequestOptions requestOptions)
-
-
-
-