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.BuilderaverageInferenceTimeMs(double value)Required - The average time for each inference call to complete on this node.TrainedModelDeploymentNodesStatsbuild()Builds aTrainedModelDeploymentNodesStats.TrainedModelDeploymentNodesStats.BuildererrorCount(int value)Required - The number of errors when evaluating the trained model.TrainedModelDeploymentNodesStats.BuilderinferenceCount(int value)Required - The total number of inference calls made against this node for this model.TrainedModelDeploymentNodesStats.BuilderlastAccess(long value)Required - The epoch time stamp of the last inference call for the model on this node.TrainedModelDeploymentNodesStats.Buildernode(DiscoveryNode value)Required - Information pertaining to the node.TrainedModelDeploymentNodesStats.Buildernode(java.util.function.Function<DiscoveryNode.Builder,ObjectBuilder<DiscoveryNode>> fn)Required - Information pertaining to the node.TrainedModelDeploymentNodesStats.BuildernumberOfAllocations(int value)Required - The number of allocations assigned to this node.TrainedModelDeploymentNodesStats.BuildernumberOfPendingRequests(int value)Required - The number of inference requests queued to be processed.TrainedModelDeploymentNodesStats.BuilderrejectionExecutionCount(int value)Required - The number of inference requests that were not processed because the queue was full.TrainedModelDeploymentNodesStats.BuilderroutingState(TrainedModelAssignmentRoutingTable value)Required - The current routing state and reason for the current routing state for this allocation.TrainedModelDeploymentNodesStats.BuilderroutingState(java.util.function.Function<TrainedModelAssignmentRoutingTable.Builder,ObjectBuilder<TrainedModelAssignmentRoutingTable>> fn)Required - The current routing state and reason for the current routing state for this allocation.protected TrainedModelDeploymentNodesStats.Builderself()TrainedModelDeploymentNodesStats.BuilderstartTime(long value)Required - The epoch timestamp when the allocation started.TrainedModelDeploymentNodesStats.BuilderthreadsPerAllocation(int value)Required - The number of threads used by each allocation during inference.TrainedModelDeploymentNodesStats.BuildertimeoutCount(int value)Required - The number of inference requests that timed out before being processed.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
-
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 -
lastAccess
Required - The epoch time stamp of the last inference call for the model on this node.API name:
last_access -
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 -
numberOfAllocations
Required - The number of allocations assigned to this node.API name:
number_of_allocations -
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(TrainedModelAssignmentRoutingTable 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<TrainedModelAssignmentRoutingTable.Builder,ObjectBuilder<TrainedModelAssignmentRoutingTable>> 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 -
threadsPerAllocation
Required - The number of threads used by each allocation during inference.API name:
threads_per_allocation -
timeoutCount
Required - The number of inference requests that timed out before being processed.API name:
timeout_count -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<TrainedModelDeploymentNodesStats.Builder>
-
build
Builds aTrainedModelDeploymentNodesStats.- Specified by:
buildin interfaceObjectBuilder<TrainedModelDeploymentNodesStats>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-