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 -
Method Summary
Modifier and TypeMethodDescriptionAPI name:adaptive_allocations
adaptiveAllocations
(Function<AdaptiveAllocationsSettings.Builder, ObjectBuilder<AdaptiveAllocationsSettings>> fn) API name:adaptive_allocations
The detailed allocation status for the deployment.allocationStatus
(Function<TrainedModelDeploymentAllocationStatus.Builder, ObjectBuilder<TrainedModelDeploymentAllocationStatus>> fn) The detailed allocation status for the deployment.build()
Builds aTrainedModelDeploymentStats
.API name:cache_size
deploymentId
(String value) Required - The unique identifier for the trained model deployment.errorCount
(Integer value) The sum oferror_count
for all nodes in the deployment.inferenceCount
(Integer value) The sum ofinference_count
for all nodes in the deployment.Required - The unique identifier for the trained model.nodes
(TrainedModelDeploymentNodesStats value, TrainedModelDeploymentNodesStats... values) Required - The deployment stats for each node that currently has the model allocated.nodes
(Function<TrainedModelDeploymentNodesStats.Builder, ObjectBuilder<TrainedModelDeploymentNodesStats>> fn) Required - The deployment stats for each node that currently has the model allocated.Required - The deployment stats for each node that currently has the model allocated.numberOfAllocations
(Integer value) The number of allocations requested.peakThroughputPerMinute
(long value) Required - API name:peak_throughput_per_minute
priority
(TrainingPriority value) Required - API name:priority
queueCapacity
(Integer value) The number of inference requests that can be queued before new requests are rejected.The reason for the current deployment state.rejectedExecutionCount
(Integer value) The sum ofrejected_execution_count
for all nodes in the deployment.protected TrainedModelDeploymentStats.Builder
self()
startTime
(long value) Required - The epoch timestamp when the deployment started.state
(DeploymentAssignmentState value) The overall state of the deployment.threadsPerAllocation
(Integer value) The number of threads used be each allocation during inference.timeoutCount
(Integer value) 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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
adaptiveAllocations
public final TrainedModelDeploymentStats.Builder adaptiveAllocations(@Nullable AdaptiveAllocationsSettings value) API name:adaptive_allocations
-
adaptiveAllocations
public final TrainedModelDeploymentStats.Builder adaptiveAllocations(Function<AdaptiveAllocationsSettings.Builder, ObjectBuilder<AdaptiveAllocationsSettings>> fn) API name:adaptive_allocations
-
allocationStatus
public final TrainedModelDeploymentStats.Builder allocationStatus(@Nullable TrainedModelDeploymentAllocationStatus value) The detailed allocation status for the deployment.API name:
allocation_status
-
allocationStatus
public final TrainedModelDeploymentStats.Builder allocationStatus(Function<TrainedModelDeploymentAllocationStatus.Builder, ObjectBuilder<TrainedModelDeploymentAllocationStatus>> fn) The detailed allocation status for the deployment.API name:
allocation_status
-
cacheSize
API name:cache_size
-
deploymentId
Required - The unique identifier for the trained model deployment.API name:
deployment_id
-
errorCount
The sum oferror_count
for all nodes in the deployment.API name:
error_count
-
inferenceCount
The sum ofinference_count
for 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 deployment stats for each node that currently has the model allocated. In serverless, stats are reported for a single unnamed virtual node.API name:
nodes
Adds all elements of
list
tonodes
. -
nodes
public final TrainedModelDeploymentStats.Builder nodes(TrainedModelDeploymentNodesStats value, TrainedModelDeploymentNodesStats... values) Required - The deployment stats for each node that currently has the model allocated. In serverless, stats are reported for a single unnamed virtual node.API name:
nodes
Adds one or more values to
nodes
. -
nodes
public final TrainedModelDeploymentStats.Builder nodes(Function<TrainedModelDeploymentNodesStats.Builder, ObjectBuilder<TrainedModelDeploymentNodesStats>> fn) Required - The deployment stats for each node that currently has the model allocated. In serverless, stats are reported for a single unnamed virtual node.API name:
nodes
Adds a value to
nodes
using a builder lambda. -
numberOfAllocations
The number of allocations requested.API name:
number_of_allocations
-
peakThroughputPerMinute
Required - API name:peak_throughput_per_minute
-
priority
Required - API name:priority
-
queueCapacity
The number of inference requests that can be queued before new requests are rejected.API name:
queue_capacity
-
rejectedExecutionCount
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
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
The overall state of the deployment.API name:
state
-
threadsPerAllocation
The number of threads used be each allocation during inference.API name:
threads_per_allocation
-
timeoutCount
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:
NullPointerException
- if some of the required fields are null.
-