Class TrainedModelDeploymentStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TrainedModelDeploymentStats.Builder>
co.elastic.clients.elasticsearch.ml.TrainedModelDeploymentStats.Builder
- All Implemented Interfaces:
WithJson<TrainedModelDeploymentStats.Builder>,ObjectBuilder<TrainedModelDeploymentStats>
- Enclosing class:
- TrainedModelDeploymentStats
public static class TrainedModelDeploymentStats.Builder extends WithJsonObjectBuilderBase<TrainedModelDeploymentStats.Builder> implements ObjectBuilder<TrainedModelDeploymentStats>
Builder for
TrainedModelDeploymentStats.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description TrainedModelDeploymentStats.BuilderallocationStatus(TrainedModelDeploymentAllocationStatus value)Required - The detailed allocation status for the deployment.TrainedModelDeploymentStats.BuilderallocationStatus(java.util.function.Function<TrainedModelDeploymentAllocationStatus.Builder,ObjectBuilder<TrainedModelDeploymentAllocationStatus>> fn)Required - The detailed allocation status for the deployment.TrainedModelDeploymentStatsbuild()Builds aTrainedModelDeploymentStats.TrainedModelDeploymentStats.BuildererrorCount(int value)Required - The sum oferror_countfor all nodes in the deployment.TrainedModelDeploymentStats.BuilderinferenceCount(int value)Required - The sum ofinference_countfor all nodes in the deployment.TrainedModelDeploymentStats.BuildermodelId(java.lang.String value)Required - The unique identifier for the trained model.TrainedModelDeploymentStats.Buildernodes(TrainedModelDeploymentNodesStats value)Required - The deployent stats for each node that currently has the model allocated.TrainedModelDeploymentStats.Buildernodes(java.util.function.Function<TrainedModelDeploymentNodesStats.Builder,ObjectBuilder<TrainedModelDeploymentNodesStats>> fn)Required - The deployent stats for each node that currently has the model allocated.TrainedModelDeploymentStats.BuildernumberOfAllocations(int value)Required - The number of allocations requested.TrainedModelDeploymentStats.BuilderqueueCapacity(int value)Required - The number of inference requests that can be queued before new requests are rejected.TrainedModelDeploymentStats.Builderreason(java.lang.String value)Required - The reason for the current deployment state.TrainedModelDeploymentStats.BuilderrejectedExecutionCount(int value)Required - The sum ofrejected_execution_countfor all nodes in the deployment.protected TrainedModelDeploymentStats.Builderself()TrainedModelDeploymentStats.BuilderstartTime(long value)Required - The epoch timestamp when the deployment started.TrainedModelDeploymentStats.Builderstate(DeploymentState value)Required - The overall state of the deployment.TrainedModelDeploymentStats.BuilderthreadsPerAllocation(int value)Required - The number of threads used be each allocation during inference.TrainedModelDeploymentStats.BuildertimeoutCount(int value)Required - The sum oftimeout_countfor all nodes in the deployment.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocationStatus
public final TrainedModelDeploymentStats.Builder allocationStatus(TrainedModelDeploymentAllocationStatus value)Required - The detailed allocation status for the deployment.API name:
allocation_status -
allocationStatus
public final TrainedModelDeploymentStats.Builder allocationStatus(java.util.function.Function<TrainedModelDeploymentAllocationStatus.Builder,ObjectBuilder<TrainedModelDeploymentAllocationStatus>> fn)Required - The detailed allocation status for the deployment.API name:
allocation_status -
errorCount
Required - The sum oferror_countfor all nodes in the deployment.API name:
error_count -
inferenceCount
Required - The sum ofinference_countfor all nodes in the deployment.API name:
inference_count -
modelId
Required - The unique identifier for the trained model.API name:
model_id -
nodes
Required - The deployent stats for each node that currently has the model allocated.API name:
nodes -
nodes
public final TrainedModelDeploymentStats.Builder nodes(java.util.function.Function<TrainedModelDeploymentNodesStats.Builder,ObjectBuilder<TrainedModelDeploymentNodesStats>> fn)Required - The deployent stats for each node that currently has the model allocated.API name:
nodes -
numberOfAllocations
Required - The number of allocations requested.API name:
number_of_allocations -
queueCapacity
Required - The number of inference requests that can be queued before new requests are rejected.API name:
queue_capacity -
rejectedExecutionCount
Required - The sum ofrejected_execution_countfor all nodes in the deployment. Individual nodes reject an inference request if the inference queue is full. The queue size is controlled by thequeue_capacitysetting in the start trained model deployment API.API name:
rejected_execution_count -
reason
Required - The reason for the current deployment state. Usually only populated when the model is not deployed to a node.API name:
reason -
startTime
Required - The epoch timestamp when the deployment started.API name:
start_time -
state
Required - The overall state of the deployment.API name:
state -
threadsPerAllocation
Required - The number of threads used be each allocation during inference.API name:
threads_per_allocation -
timeoutCount
Required - The sum oftimeout_countfor all nodes in the deployment.API name:
timeout_count -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<TrainedModelDeploymentStats.Builder>
-
build
Builds aTrainedModelDeploymentStats.- Specified by:
buildin interfaceObjectBuilder<TrainedModelDeploymentStats>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-