Class ModelProfile
java.lang.Object
org.opensearch.client.opensearch.ml.ModelProfile
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<ModelProfile.Builder,ModelProfile>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ModelProfile
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<ModelProfile.Builder,ModelProfile>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ModelProfile> Json deserializer forModelProfile -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelProfile.Builderbuilder()final ModelStatsdeploy()API name:deploybooleanfinal ModelStatsexecute()API name:executeinthashCode()final LongThe estimated memory size in CPU.final LongThe estimated memory size in GPU.final StringThe model state.static ModelProfilefinal ModelStatspredict()API name:predictfinal StringThe predictor.final PredictRequestStatsAPI name:predict_request_statsfinal ModelStatsregister()API name:registervoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidAPI name:target_worker_nodesCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final ModelStatstrain()API name:trainfinal ModelStatsAPI name:train_predictfinal ModelStatsundeploy()API name:undeployAPI name:worker_nodesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forModelProfile
-
-
Method Details
-
of
-
deploy
API name:deploy -
execute
API name:execute -
memorySizeEstimationCpu
The estimated memory size in CPU.API name:
memory_size_estimation_cpu -
memorySizeEstimationGpu
The estimated memory size in GPU.API name:
memory_size_estimation_gpu -
modelState
The model state.API name:
model_state -
predict
API name:predict -
predictRequestStats
API name:predict_request_stats -
predictor
The predictor.API name:
predictor -
register
API name:register -
targetWorkerNodes
API name:target_worker_nodes -
train
API name:train -
trainPredict
API name:train_predict -
undeploy
API name:undeploy -
workerNodes
API name:worker_nodes -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ModelProfile.Builder,ModelProfile> - Returns:
- a new builder instance.
-
builder
-
setupModelProfileDeserializer
-
hashCode
public int hashCode() -
equals
-