Class TrainedModelDeploymentNodesStats
java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelDeploymentNodesStats
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class TrainedModelDeploymentNodesStats extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TrainedModelDeploymentNodesStats.Builder
Builder forTrainedModelDeploymentNodesStats
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TrainedModelDeploymentNodesStats>
_DESERIALIZER
Json deserializer forTrainedModelDeploymentNodesStats
-
Method Summary
Modifier and Type Method Description double
averageInferenceTimeMs()
Required - The average time for each inference call to complete on this node.int
errorCount()
Required - The number of errors when evaluating the trained model.int
inferenceCount()
Required - The total number of inference calls made against this node for this model.int
inferenceThreads()
Required - The number of threads used by the inference process.long
lastAccess()
Required - The epoch time stamp of the last inference call for the model on this node.int
modelThreads()
Required - The number of threads used when sending inference requests to the model.DiscoveryNode
node()
Required - Information pertaining to the node.int
numberOfPendingRequests()
Required - The number of inference requests queued to be processed.static TrainedModelDeploymentNodesStats
of(java.util.function.Function<TrainedModelDeploymentNodesStats.Builder,ObjectBuilder<TrainedModelDeploymentNodesStats>> fn)
int
rejectionExecutionCount()
Required - The number of inference requests that were not processed because the queue was full.TrainedModelAllocationRoutingTable
routingState()
Required - The current routing state and reason for the current routing state for this allocation.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupTrainedModelDeploymentNodesStatsDeserializer(ObjectDeserializer<TrainedModelDeploymentNodesStats.Builder> op)
long
startTime()
Required - The epoch timestamp when the allocation started.int
timeoutCount()
Required - The number of inference requests that timed out before being processed.java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forTrainedModelDeploymentNodesStats
-
-
Method Details
-
of
public static TrainedModelDeploymentNodesStats of(java.util.function.Function<TrainedModelDeploymentNodesStats.Builder,ObjectBuilder<TrainedModelDeploymentNodesStats>> fn) -
averageInferenceTimeMs
public final double averageInferenceTimeMs()Required - The average time for each inference call to complete on this node.API name:
average_inference_time_ms
-
errorCount
public final int errorCount()Required - The number of errors when evaluating the trained model.API name:
error_count
-
inferenceCount
public final int inferenceCount()Required - The total number of inference calls made against this node for this model.API name:
inference_count
-
inferenceThreads
public final int 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
public final long lastAccess()Required - The epoch time stamp of the last inference call for the model on this node.API name:
last_access
-
modelThreads
public final int 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
-
numberOfPendingRequests
public final int numberOfPendingRequests()Required - The number of inference requests queued to be processed.API name:
number_of_pending_requests
-
rejectionExecutionCount
public final int rejectionExecutionCount()Required - The number of inference requests that were not processed because the queue was full.API name:
rejection_execution_count
-
routingState
Required - The current routing state and reason for the current routing state for this allocation.API name:
routing_state
-
startTime
public final long startTime()Required - The epoch timestamp when the allocation started.API name:
start_time
-
timeoutCount
public final int timeoutCount()Required - The number of inference requests that timed out before being processed.API name:
timeout_count
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupTrainedModelDeploymentNodesStatsDeserializer
protected static void setupTrainedModelDeploymentNodesStatsDeserializer(ObjectDeserializer<TrainedModelDeploymentNodesStats.Builder> op)
-