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 -
Method Summary
Modifier and TypeMethodDescriptionaverageInferenceTimeMs(double value) Required - The average time for each inference call to complete on this node.build()Builds aTrainedModelDeploymentNodesStats.errorCount(int value) Required - The number of errors when evaluating the trained model.inferenceCount(int value) Required - The total number of inference calls made against this node for this model.lastAccess(long value) Required - The epoch time stamp of the last inference call for the model on this node.node(DiscoveryNode value) Required - Information pertaining to the node.Required - Information pertaining to the node.numberOfAllocations(int value) Required - The number of allocations assigned to this node.numberOfPendingRequests(int value) Required - The number of inference requests queued to be processed.rejectionExecutionCount(int value) Required - The number of inference requests that were not processed because the queue was full.Required - The current routing state and reason for the current routing state for this allocation.routingState(Function<TrainedModelAssignmentRoutingTable.Builder, ObjectBuilder<TrainedModelAssignmentRoutingTable>> fn) Required - The current routing state and reason for the current routing state for this allocation.protected TrainedModelDeploymentNodesStats.Builderself()startTime(long value) Required - The epoch timestamp when the allocation started.threadsPerAllocation(int value) Required - The number of threads used by each allocation during inference.timeoutCount(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, _mapPutAll
-
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(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(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:
NullPointerException- if some of the required fields are null.
-