Class UsageEmbeddingsResponse.Data.Result.OrganizationUsageCompletionsResult
-
- All Implemented Interfaces:
public final class UsageEmbeddingsResponse.Data.Result.OrganizationUsageCompletionsResultThe aggregated completions usage details of the specific time bucket.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUsageEmbeddingsResponse.Data.Result.OrganizationUsageCompletionsResult.BuilderA builder for OrganizationUsageCompletionsResult.
-
Method Summary
Modifier and Type Method Description final LonginputTokens()The aggregated number of text input tokens used, including cached tokens. final LongnumModelRequests()The count of requests made to the model. final JsonValue_object_()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("organization.usage.completions.result")final LongoutputTokens()The aggregated number of text output tokens used. final Optional<String>apiKeyId()When group_by=api_key_id, this field provides the API key ID of the grouped usage result.final Optional<Boolean>batch()When group_by=batch, this field tells whether the grouped usage result is batch or not.final Optional<Long>inputAudioTokens()The aggregated number of audio input tokens used, including cached tokens. final Optional<Long>inputCachedTokens()The aggregated number of text input tokens that has been cached from previous requests. final Optional<String>model()When group_by=model, this field provides the model name of the grouped usage result.final Optional<Long>outputAudioTokens()The aggregated number of audio output tokens used. final Optional<String>projectId()When group_by=project_id, this field provides the project ID of the grouped usage result.final Optional<String>serviceTier()When group_by=service_tier, this field provides the service tier of the grouped usage result.final Optional<String>userId()When group_by=user_id, this field provides the user ID of the grouped usage result.final JsonField<Long>_inputTokens()Returns the raw JSON value of inputTokens. final JsonField<Long>_numModelRequests()Returns the raw JSON value of numModelRequests. final JsonField<Long>_outputTokens()Returns the raw JSON value of outputTokens. final JsonField<String>_apiKeyId()Returns the raw JSON value of apiKeyId. final JsonField<Boolean>_batch()Returns the raw JSON value of batch. final JsonField<Long>_inputAudioTokens()Returns the raw JSON value of inputAudioTokens. final JsonField<Long>_inputCachedTokens()Returns the raw JSON value of inputCachedTokens. final JsonField<String>_model()Returns the raw JSON value of model. final JsonField<Long>_outputAudioTokens()Returns the raw JSON value of outputAudioTokens. final JsonField<String>_projectId()Returns the raw JSON value of projectId. final JsonField<String>_serviceTier()Returns the raw JSON value of serviceTier. final JsonField<String>_userId()Returns the raw JSON value of userId. final Map<String, JsonValue>_additionalProperties()final UsageEmbeddingsResponse.Data.Result.OrganizationUsageCompletionsResult.BuildertoBuilder()final UsageEmbeddingsResponse.Data.Result.OrganizationUsageCompletionsResultvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UsageEmbeddingsResponse.Data.Result.OrganizationUsageCompletionsResult.Builderbuilder()Returns a mutable builder for constructing an instance of OrganizationUsageCompletionsResult. -
-
Method Detail
-
inputTokens
final Long inputTokens()
The aggregated number of text input tokens used, including cached tokens. For customers subscribe to scale tier, this includes scale tier tokens.
-
numModelRequests
final Long numModelRequests()
The count of requests made to the model.
-
_object_
final JsonValue _object_()
Expected to always return the following:
JsonValue.from("organization.usage.completions.result")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
outputTokens
final Long outputTokens()
The aggregated number of text output tokens used. For customers subscribe to scale tier, this includes scale tier tokens.
-
apiKeyId
final Optional<String> apiKeyId()
When
group_by=api_key_id, this field provides the API key ID of the grouped usage result.
-
batch
final Optional<Boolean> batch()
When
group_by=batch, this field tells whether the grouped usage result is batch or not.
-
inputAudioTokens
final Optional<Long> inputAudioTokens()
The aggregated number of audio input tokens used, including cached tokens.
-
inputCachedTokens
final Optional<Long> inputCachedTokens()
The aggregated number of text input tokens that has been cached from previous requests. For customers subscribe to scale tier, this includes scale tier tokens.
-
model
final Optional<String> model()
When
group_by=model, this field provides the model name of the grouped usage result.
-
outputAudioTokens
final Optional<Long> outputAudioTokens()
The aggregated number of audio output tokens used.
-
projectId
final Optional<String> projectId()
When
group_by=project_id, this field provides the project ID of the grouped usage result.
-
serviceTier
final Optional<String> serviceTier()
When
group_by=service_tier, this field provides the service tier of the grouped usage result.
-
userId
final Optional<String> userId()
When
group_by=user_id, this field provides the user ID of the grouped usage result.
-
_inputTokens
final JsonField<Long> _inputTokens()
Returns the raw JSON value of inputTokens.
Unlike inputTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_numModelRequests
final JsonField<Long> _numModelRequests()
Returns the raw JSON value of numModelRequests.
Unlike numModelRequests, this method doesn't throw if the JSON field has an unexpected type.
-
_outputTokens
final JsonField<Long> _outputTokens()
Returns the raw JSON value of outputTokens.
Unlike outputTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_apiKeyId
final JsonField<String> _apiKeyId()
Returns the raw JSON value of apiKeyId.
Unlike apiKeyId, this method doesn't throw if the JSON field has an unexpected type.
-
_batch
final JsonField<Boolean> _batch()
Returns the raw JSON value of batch.
Unlike batch, this method doesn't throw if the JSON field has an unexpected type.
-
_inputAudioTokens
final JsonField<Long> _inputAudioTokens()
Returns the raw JSON value of inputAudioTokens.
Unlike inputAudioTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_inputCachedTokens
final JsonField<Long> _inputCachedTokens()
Returns the raw JSON value of inputCachedTokens.
Unlike inputCachedTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_model
final JsonField<String> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_outputAudioTokens
final JsonField<Long> _outputAudioTokens()
Returns the raw JSON value of outputAudioTokens.
Unlike outputAudioTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_projectId
final JsonField<String> _projectId()
Returns the raw JSON value of projectId.
Unlike projectId, this method doesn't throw if the JSON field has an unexpected type.
-
_serviceTier
final JsonField<String> _serviceTier()
Returns the raw JSON value of serviceTier.
Unlike serviceTier, this method doesn't throw if the JSON field has an unexpected type.
-
_userId
final JsonField<String> _userId()
Returns the raw JSON value of userId.
Unlike userId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder toBuilder()
-
validate
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageCompletionsResult validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static UsageEmbeddingsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder builder()
Returns a mutable builder for constructing an instance of OrganizationUsageCompletionsResult.
The following fields are required:
.inputTokens() .numModelRequests() .outputTokens()
-
-
-
-