Class FineTuningJobEvent
-
- All Implemented Interfaces:
public final class FineTuningJobEventFine-tuning job event object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classFineTuningJobEvent.BuilderA builder for FineTuningJobEvent.
public final classFineTuningJobEvent.LevelThe log level of the event.
public final classFineTuningJobEvent.TypeThe type of event.
-
Method Summary
Modifier and Type Method Description final Stringid()The object identifier. final LongcreatedAt()The Unix timestamp (in seconds) for when the fine-tuning job was created. final FineTuningJobEvent.Levellevel()The log level of the event. final Stringmessage()The message of the event. final JsonValue_object_()The object type, which is always "fine_tuning.job.event". final JsonValue_data()The data associated with the event. final Optional<FineTuningJobEvent.Type>type()The type of event. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<Long>_createdAt()Returns the raw JSON value of createdAt. final JsonField<FineTuningJobEvent.Level>_level()Returns the raw JSON value of level. final JsonField<String>_message()Returns the raw JSON value of message. final JsonField<FineTuningJobEvent.Type>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final FineTuningJobEvent.BuildertoBuilder()final FineTuningJobEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FineTuningJobEvent.Builderbuilder()Returns a mutable builder for constructing an instance of FineTuningJobEvent. -
-
Method Detail
-
createdAt
final Long createdAt()
The Unix timestamp (in seconds) for when the fine-tuning job was created.
-
level
final FineTuningJobEvent.Level level()
The log level of the event.
-
_object_
final JsonValue _object_()
The object type, which is always "fine_tuning.job.event".
Expected to always return the following:
JsonValue.from("fine_tuning.job.event")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_data
final JsonValue _data()
The data associated with the event.
This arbitrary value can be deserialized into a custom type using the
convertmethod:MyClass myObject = fineTuningJobEvent.data().convert(MyClass.class);
-
type
final Optional<FineTuningJobEvent.Type> type()
The type of event.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<Long> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_level
final JsonField<FineTuningJobEvent.Level> _level()
Returns the raw JSON value of level.
Unlike level, this method doesn't throw if the JSON field has an unexpected type.
-
_message
final JsonField<String> _message()
Returns the raw JSON value of message.
Unlike message, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<FineTuningJobEvent.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final FineTuningJobEvent.Builder toBuilder()
-
validate
final FineTuningJobEvent 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 FineTuningJobEvent.Builder builder()
Returns a mutable builder for constructing an instance of FineTuningJobEvent.
The following fields are required:
.id() .createdAt() .level() .message()
-
-
-
-