Interface UsageReportServiceAsync
-
- All Implemented Interfaces:
public interface UsageReportServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceUsageReportServiceAsync.WithRawResponseA view of UsageReportServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract UsageReportServiceAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract UsageReportServiceAsyncwithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. CompletableFuture<UsageReportListPageAsync>list(UsageReportListParams params)Legacy Get token usage over time across a date range. abstract CompletableFuture<UsageReportListPageAsync>list(UsageReportListParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract UsageReportServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract UsageReportServiceAsync 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<UsageReportListPageAsync> list(UsageReportListParams params)
Legacy Get token usage over time across a date range.
Returns token usage bucketed by minute, hour, or day, optionally broken down by one or more
group_by[]dimensions, such as product or model. 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<UsageReportListPageAsync> list(UsageReportListParams params, RequestOptions requestOptions)
-
-
-
-