Class UsageModerationsResponse.Data.Result.OrganizationUsageCodeInterpreterSessionsResult
-
- All Implemented Interfaces:
public final class UsageModerationsResponse.Data.Result.OrganizationUsageCodeInterpreterSessionsResultThe aggregated code interpreter sessions usage details of the specific time bucket.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUsageModerationsResponse.Data.Result.OrganizationUsageCodeInterpreterSessionsResult.BuilderA builder for OrganizationUsageCodeInterpreterSessionsResult.
-
Method Summary
Modifier and Type Method Description final LongnumSessions()The number of code interpreter sessions. 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.code_interpreter_sessions.result")final Optional<String>projectId()When group_by=project_id, this field provides the project ID of the grouped usage result.final JsonField<Long>_numSessions()Returns the raw JSON value of numSessions. final JsonField<String>_projectId()Returns the raw JSON value of projectId. final Map<String, JsonValue>_additionalProperties()final UsageModerationsResponse.Data.Result.OrganizationUsageCodeInterpreterSessionsResult.BuildertoBuilder()final UsageModerationsResponse.Data.Result.OrganizationUsageCodeInterpreterSessionsResultvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UsageModerationsResponse.Data.Result.OrganizationUsageCodeInterpreterSessionsResult.Builderbuilder()Returns a mutable builder for constructing an instance of OrganizationUsageCodeInterpreterSessionsResult. -
-
Method Detail
-
numSessions
final Long numSessions()
The number of code interpreter sessions.
-
_object_
final JsonValue _object_()
Expected to always return the following:
JsonValue.from("organization.usage.code_interpreter_sessions.result")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
projectId
final Optional<String> projectId()
When
group_by=project_id, this field provides the project ID of the grouped usage result.
-
_numSessions
final JsonField<Long> _numSessions()
Returns the raw JSON value of numSessions.
Unlike numSessions, 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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final UsageModerationsResponse.Data.Result.OrganizationUsageCodeInterpreterSessionsResult.Builder toBuilder()
-
validate
final UsageModerationsResponse.Data.Result.OrganizationUsageCodeInterpreterSessionsResult 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 UsageModerationsResponse.Data.Result.OrganizationUsageCodeInterpreterSessionsResult.Builder builder()
Returns a mutable builder for constructing an instance of OrganizationUsageCodeInterpreterSessionsResult.
The following fields are required:
.numSessions()
-
-
-
-