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) The average time for each inference call to complete on this node.The average time for each inference call to complete on this node, excluding cacheAPI name:average_inference_time_ms_last_minute
build()
Builds aTrainedModelDeploymentNodesStats
.errorCount
(Integer value) The number of errors when evaluating the trained model.inferenceCacheHitCount
(Long value) API name:inference_cache_hit_count
API name:inference_cache_hit_count_last_minute
inferenceCount
(Long value) The total number of inference calls made against this node for this model.lastAccess
(Long value) The epoch time stamp of the last inference call for the model on this node.node
(DiscoveryNodeContent value) Information pertaining to the node.Information pertaining to the node.numberOfAllocations
(Integer value) The number of allocations assigned to this node.numberOfPendingRequests
(Integer value) The number of inference requests queued to be processed.peakThroughputPerMinute
(long value) Required - API name:peak_throughput_per_minute
rejectedExecutionCount
(Integer value) 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<TrainedModelAssignmentRoutingStateAndReason.Builder, ObjectBuilder<TrainedModelAssignmentRoutingStateAndReason>> fn) Required - The current routing state and reason for the current routing state for this allocation.protected TrainedModelDeploymentNodesStats.Builder
self()
The epoch timestamp when the allocation started.threadsPerAllocation
(Integer value) The number of threads used by each allocation during inference.throughputLastMinute
(int value) Required - API name:throughput_last_minute
timeoutCount
(Integer value) 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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
averageInferenceTimeMs
public final TrainedModelDeploymentNodesStats.Builder averageInferenceTimeMs(@Nullable Double value) The average time for each inference call to complete on this node.API name:
average_inference_time_ms
-
averageInferenceTimeMsLastMinute
public final TrainedModelDeploymentNodesStats.Builder averageInferenceTimeMsLastMinute(@Nullable Double value) API name:average_inference_time_ms_last_minute
-
averageInferenceTimeMsExcludingCacheHits
public final TrainedModelDeploymentNodesStats.Builder averageInferenceTimeMsExcludingCacheHits(@Nullable Double value) The average time for each inference call to complete on this node, excluding cacheAPI name:
average_inference_time_ms_excluding_cache_hits
-
errorCount
The number of errors when evaluating the trained model.API name:
error_count
-
inferenceCount
The total number of inference calls made against this node for this model.API name:
inference_count
-
inferenceCacheHitCount
API name:inference_cache_hit_count
-
inferenceCacheHitCountLastMinute
public final TrainedModelDeploymentNodesStats.Builder inferenceCacheHitCountLastMinute(@Nullable Long value) API name:inference_cache_hit_count_last_minute
-
lastAccess
The epoch time stamp of the last inference call for the model on this node.API name:
last_access
-
node
Information pertaining to the node.API name:
node
-
node
public final TrainedModelDeploymentNodesStats.Builder node(Function<DiscoveryNodeContent.Builder, ObjectBuilder<DiscoveryNodeContent>> fn) Information pertaining to the node.API name:
node
-
numberOfAllocations
The number of allocations assigned to this node.API name:
number_of_allocations
-
numberOfPendingRequests
public final TrainedModelDeploymentNodesStats.Builder numberOfPendingRequests(@Nullable Integer value) The number of inference requests queued to be processed.API name:
number_of_pending_requests
-
peakThroughputPerMinute
Required - API name:peak_throughput_per_minute
-
rejectedExecutionCount
public final TrainedModelDeploymentNodesStats.Builder rejectedExecutionCount(@Nullable Integer value) The number of inference requests that were not processed because the queue was full.API name:
rejected_execution_count
-
routingState
public final TrainedModelDeploymentNodesStats.Builder routingState(TrainedModelAssignmentRoutingStateAndReason 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<TrainedModelAssignmentRoutingStateAndReason.Builder, ObjectBuilder<TrainedModelAssignmentRoutingStateAndReason>> fn) Required - The current routing state and reason for the current routing state for this allocation.API name:
routing_state
-
startTime
The epoch timestamp when the allocation started.API name:
start_time
-
threadsPerAllocation
The number of threads used by each allocation during inference.API name:
threads_per_allocation
-
throughputLastMinute
Required - API name:throughput_last_minute
-
timeoutCount
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:
NullPointerException
- if some of the required fields are null.
-