Class TrainedModelDeploymentNodesStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TrainedModelDeploymentNodesStats.Builder>
co.elastic.clients.elasticsearch.ml.TrainedModelDeploymentNodesStats.Builder
- All Implemented Interfaces:
WithJson<TrainedModelDeploymentNodesStats.Builder>
,ObjectBuilder<TrainedModelDeploymentNodesStats>
- Enclosing class:
- TrainedModelDeploymentNodesStats
public static class TrainedModelDeploymentNodesStats.Builder extends WithJsonObjectBuilderBase<TrainedModelDeploymentNodesStats.Builder> implements ObjectBuilder<TrainedModelDeploymentNodesStats>
Builder for
TrainedModelDeploymentNodesStats
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description TrainedModelDeploymentNodesStats.Builder
averageInferenceTimeMs(double value)
Required - The average time for each inference call to complete on this node.TrainedModelDeploymentNodesStats
build()
Builds aTrainedModelDeploymentNodesStats
.TrainedModelDeploymentNodesStats.Builder
errorCount(int value)
Required - The number of errors when evaluating the trained model.TrainedModelDeploymentNodesStats.Builder
inferenceCount(int value)
Required - The total number of inference calls made against this node for this model.TrainedModelDeploymentNodesStats.Builder
inferenceThreads(int value)
Required - The number of threads used by the inference process.TrainedModelDeploymentNodesStats.Builder
lastAccess(long value)
Required - The epoch time stamp of the last inference call for the model on this node.TrainedModelDeploymentNodesStats.Builder
modelThreads(int value)
Required - The number of threads used when sending inference requests to the model.TrainedModelDeploymentNodesStats.Builder
node(DiscoveryNode value)
Required - Information pertaining to the node.TrainedModelDeploymentNodesStats.Builder
node(java.util.function.Function<DiscoveryNode.Builder,ObjectBuilder<DiscoveryNode>> fn)
Required - Information pertaining to the node.TrainedModelDeploymentNodesStats.Builder
numberOfPendingRequests(int value)
Required - The number of inference requests queued to be processed.TrainedModelDeploymentNodesStats.Builder
rejectionExecutionCount(int value)
Required - The number of inference requests that were not processed because the queue was full.TrainedModelDeploymentNodesStats.Builder
routingState(TrainedModelAllocationRoutingTable value)
Required - The current routing state and reason for the current routing state for this allocation.TrainedModelDeploymentNodesStats.Builder
routingState(java.util.function.Function<TrainedModelAllocationRoutingTable.Builder,ObjectBuilder<TrainedModelAllocationRoutingTable>> fn)
Required - The current routing state and reason for the current routing state for this allocation.protected TrainedModelDeploymentNodesStats.Builder
self()
TrainedModelDeploymentNodesStats.Builder
startTime(long value)
Required - The epoch timestamp when the allocation started.TrainedModelDeploymentNodesStats.Builder
timeoutCount(int value)
Required - The number of inference requests that timed out before being processed.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
-
averageInferenceTimeMs
Required - The average time for each inference call to complete on this node.API name:
average_inference_time_ms
-
errorCount
Required - The number of errors when evaluating the trained model.API name:
error_count
-
inferenceCount
Required - The total number of inference calls made against this node for this model.API name:
inference_count
-
inferenceThreads
Required - The number of threads used by the inference process. This value is limited by the number of hardware threads on the node; it might therefore differ from theinference_threads
value in the start trained model deployment API.API name:
inference_threads
-
lastAccess
Required - The epoch time stamp of the last inference call for the model on this node.API name:
last_access
-
modelThreads
Required - The number of threads used when sending inference requests to the model. This value is limited by the number of hardware threads on the node; it might therefore differ from themodel_threads
value in the start trained model deployment API.API name:
model_threads
-
node
Required - Information pertaining to the node.API name:
node
-
node
public final TrainedModelDeploymentNodesStats.Builder node(java.util.function.Function<DiscoveryNode.Builder,ObjectBuilder<DiscoveryNode>> fn)Required - Information pertaining to the node.API name:
node
-
numberOfPendingRequests
Required - The number of inference requests queued to be processed.API name:
number_of_pending_requests
-
rejectionExecutionCount
Required - The number of inference requests that were not processed because the queue was full.API name:
rejection_execution_count
-
routingState
public final TrainedModelDeploymentNodesStats.Builder routingState(TrainedModelAllocationRoutingTable value)Required - The current routing state and reason for the current routing state for this allocation.API name:
routing_state
-
routingState
public final TrainedModelDeploymentNodesStats.Builder routingState(java.util.function.Function<TrainedModelAllocationRoutingTable.Builder,ObjectBuilder<TrainedModelAllocationRoutingTable>> fn)Required - The current routing state and reason for the current routing state for this allocation.API name:
routing_state
-
startTime
Required - The epoch timestamp when the allocation started.API name:
start_time
-
timeoutCount
Required - The number of inference requests that timed out before being processed.API name:
timeout_count
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<TrainedModelDeploymentNodesStats.Builder>
-
build
Builds aTrainedModelDeploymentNodesStats
.- Specified by:
build
in interfaceObjectBuilder<TrainedModelDeploymentNodesStats>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-