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