Interface CostReportService
-
- All Implemented Interfaces:
public interface CostReportService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceCostReportService.WithRawResponseA view of CostReportService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract CostReportService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract CostReportServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. CostReportListPagelist(CostReportListParams params)Legacy Get cost in USD over time across a date range. abstract CostReportListPagelist(CostReportListParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract CostReportService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract CostReportService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
list
CostReportListPage list(CostReportListParams params)
Legacy Get cost in USD over time across a date range.
Returns cost bucketed by minute, hour, or day, optionally broken down by one or more
group_by[]dimensions, such as model or cost type. 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 CostReportListPage list(CostReportListParams params, RequestOptions requestOptions)
-
-
-
-