Interface CostService
-
- All Implemented Interfaces:
public interface CostService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceCostService.WithRawResponseA view of CostService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract CostService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract CostServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. CostListPagelist(CostListParams params)Get cost in USD across a date range, broken out by dimension. abstract CostListPagelist(CostListParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract CostService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract CostService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
list
CostListPage list(CostListParams params)
Get cost in USD across a date range, broken out by dimension.
Returns one row per combination of the requested
group_by[]dimensions (and time bucket, whentime_bucket_widthis set) that has cost in the range, ranked by spend or ordered by time bucket; every combination is returned across pages. With nogroup_by[]and notime_bucket_width, a single row aggregates the whole range. Includes all cost, whether or not it is attributable to a seat user. Requires an API key with theread:analyticsscope, or an Admin API key.
-
list
abstract CostListPage list(CostListParams params, RequestOptions requestOptions)
-
-
-
-