Interface CostServiceAsync
-
- All Implemented Interfaces:
public interface CostServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceCostServiceAsync.WithRawResponseA view of CostServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract CostServiceAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract CostServiceAsyncwithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. CompletableFuture<CostListPageAsync>list(CostListParams params)Get cost in USD across a date range, broken out by dimension. abstract CompletableFuture<CostListPageAsync>list(CostListParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract CostServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract CostServiceAsync 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<CostListPageAsync> 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 CompletableFuture<CostListPageAsync> list(CostListParams params, RequestOptions requestOptions)
-
-
-
-