Interface UsageReportService
-
- All Implemented Interfaces:
public interface UsageReportService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceUsageReportService.WithRawResponseA view of UsageReportService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract UsageReportService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract UsageReportServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. UsageReportListPagelist(UsageReportListParams params)Legacy Get token usage over time across a date range. abstract UsageReportListPagelist(UsageReportListParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract UsageReportService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract UsageReportService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
list
UsageReportListPage 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 UsageReportListPage list(UsageReportListParams params, RequestOptions requestOptions)
-
-
-
-