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