Class UsageVectorStoresParams
-
- All Implemented Interfaces:
-
com.openai.core.Params
public final class UsageVectorStoresParams implements Params
Get vector stores usage details for the organization.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUsageVectorStoresParams.BuilderA builder for UsageVectorStoresParams.
public final classUsageVectorStoresParams.BucketWidthWidth of each time bucket in response. Currently
1m,1hand1dare supported, default to1d.public final classUsageVectorStoresParams.GroupBy
-
Method Summary
Modifier and Type Method Description final LongstartTime()Start time (Unix seconds) of the query time range, inclusive. final Optional<UsageVectorStoresParams.BucketWidth>bucketWidth()Width of each time bucket in response. final Optional<Long>endTime()End time (Unix seconds) of the query time range, exclusive. final Optional<List<UsageVectorStoresParams.GroupBy>>groupBy()Group the usage data by the specified fields. final Optional<Long>limit()Specifies the number of buckets to return. final Optional<String>page()A cursor for use in pagination. final Optional<List<String>>projectIds()Return only usage for these projects. final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final UsageVectorStoresParams.BuildertoBuilder()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static UsageVectorStoresParams.Builderbuilder()Returns a mutable builder for constructing an instance of UsageVectorStoresParams. -
-
Method Detail
-
bucketWidth
final Optional<UsageVectorStoresParams.BucketWidth> bucketWidth()
Width of each time bucket in response. Currently
1m,1hand1dare supported, default to1d.
-
groupBy
final Optional<List<UsageVectorStoresParams.GroupBy>> groupBy()
Group the usage data by the specified fields. Support fields include
project_id.
-
limit
final Optional<Long> limit()
Specifies the number of buckets to return.
bucket_width=1d: default: 7, max: 31bucket_width=1h: default: 24, max: 168bucket_width=1m: default: 60, max: 1440
-
page
final Optional<String> page()
A cursor for use in pagination. Corresponding to the
next_pagefield from the previous response.
-
projectIds
final Optional<List<String>> projectIds()
Return only usage for these projects.
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final UsageVectorStoresParams.Builder toBuilder()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static UsageVectorStoresParams.Builder builder()
Returns a mutable builder for constructing an instance of UsageVectorStoresParams.
The following fields are required:
.startTime()
-
-
-
-