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.Builder
allocationStatus(TrainedModelDeploymentAllocationStatus value)
Required - The detailed allocation status for the deployment.TrainedModelDeploymentStats.Builder
allocationStatus(java.util.function.Function<TrainedModelDeploymentAllocationStatus.Builder,ObjectBuilder<TrainedModelDeploymentAllocationStatus>> fn)
Required - The detailed allocation status for the deployment.TrainedModelDeploymentStats
build()
Builds aTrainedModelDeploymentStats
.TrainedModelDeploymentStats.Builder
errorCount(int value)
Required - The sum oferror_count
for all nodes in the deployment.TrainedModelDeploymentStats.Builder
inferenceCount(int value)
Required - The sum ofinference_count
for all nodes in the deployment.TrainedModelDeploymentStats.Builder
inferenceThreads(int value)
Required - The number of threads used by the inference process.TrainedModelDeploymentStats.Builder
modelId(java.lang.String value)
Required - The unique identifier for the trained model.TrainedModelDeploymentStats.Builder
modelThreads(int value)
Required - The number of threads used when sending inference requests to the model.TrainedModelDeploymentStats.Builder
nodes(TrainedModelDeploymentNodesStats value)
Required - The deployent stats for each node that currently has the model allocated.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.TrainedModelDeploymentStats.Builder
queueCapacity(int value)
Required - The number of inference requests that can be queued before new requests are rejected.TrainedModelDeploymentStats.Builder
reason(java.lang.String value)
Required - The reason for the current deployment state.TrainedModelDeploymentStats.Builder
rejectedExecutionCount(int value)
Required - The sum ofrejected_execution_count
for all nodes in the deployment.protected TrainedModelDeploymentStats.Builder
self()
TrainedModelDeploymentStats.Builder
startTime(long value)
Required - The epoch timestamp when the deployment started.TrainedModelDeploymentStats.Builder
state(DeploymentState value)
Required - The overall state of the deployment.TrainedModelDeploymentStats.Builder
timeoutCount(int value)
Required - The sum oftimeout_count
for all nodes in the deployment.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods 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_count
for all nodes in the deployment.API name:
error_count
-
inferenceCount
Required - The sum ofinference_count
for all nodes in the deployment.API name:
inference_count
-
inferenceThreads
Required - The number of threads used by the inference process.API name:
inference_threads
-
modelId
Required - The unique identifier for the trained model.API name:
model_id
-
modelThreads
Required - The number of threads used when sending inference requests to the model.API name:
model_threads
-
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
-
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_count
for all nodes in the deployment. Individual nodes reject an inference request if the inference queue is full. The queue size is controlled by thequeue_capacity
setting 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
-
timeoutCount
Required - The sum oftimeout_count
for all nodes in the deployment.API name:
timeout_count
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<TrainedModelDeploymentStats.Builder>
-
build
Builds aTrainedModelDeploymentStats
.- Specified by:
build
in interfaceObjectBuilder<TrainedModelDeploymentStats>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-