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 SummaryConstructors
- 
Method SummaryModifier 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_minutebuild()Builds aTrainedModelDeploymentNodesStats.errorCount(Integer value) The number of errors when evaluating the trained model.inferenceCacheHitCount(Long value) API name:inference_cache_hit_countAPI name:inference_cache_hit_count_last_minuteinferenceCount(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_minuterejectedExecutionCount(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.Builderself()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_minutetimeoutCount(Integer value) The number of inference requests that timed out before being processed.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
averageInferenceTimeMspublic 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
- 
averageInferenceTimeMsLastMinutepublic final TrainedModelDeploymentNodesStats.Builder averageInferenceTimeMsLastMinute(@Nullable Double value) API name:average_inference_time_ms_last_minute
- 
averageInferenceTimeMsExcludingCacheHitspublic 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
- 
errorCountThe number of errors when evaluating the trained model.API name: error_count
- 
inferenceCountThe total number of inference calls made against this node for this model.API name: inference_count
- 
inferenceCacheHitCountAPI name:inference_cache_hit_count
- 
inferenceCacheHitCountLastMinutepublic final TrainedModelDeploymentNodesStats.Builder inferenceCacheHitCountLastMinute(@Nullable Long value) API name:inference_cache_hit_count_last_minute
- 
lastAccessThe epoch time stamp of the last inference call for the model on this node.API name: last_access
- 
nodeInformation pertaining to the node.API name: node
- 
nodepublic final TrainedModelDeploymentNodesStats.Builder node(Function<DiscoveryNodeContent.Builder, ObjectBuilder<DiscoveryNodeContent>> fn) Information pertaining to the node.API name: node
- 
numberOfAllocationsThe number of allocations assigned to this node.API name: number_of_allocations
- 
numberOfPendingRequestspublic final TrainedModelDeploymentNodesStats.Builder numberOfPendingRequests(@Nullable Integer value) The number of inference requests queued to be processed.API name: number_of_pending_requests
- 
peakThroughputPerMinuteRequired - API name:peak_throughput_per_minute
- 
rejectedExecutionCountpublic 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
- 
routingStatepublic 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
- 
routingStatepublic 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
- 
startTimeThe epoch timestamp when the allocation started.API name: start_time
- 
threadsPerAllocationThe number of threads used by each allocation during inference.API name: threads_per_allocation
- 
throughputLastMinuteRequired - API name:throughput_last_minute
- 
timeoutCountThe number of inference requests that timed out before being processed.API name: timeout_count
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<TrainedModelDeploymentNodesStats.Builder>
 
- 
buildBuilds aTrainedModelDeploymentNodesStats.- Specified by:
- buildin interface- ObjectBuilder<TrainedModelDeploymentNodesStats>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-