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 classTrainedModelDeploymentNodesStats.BuilderBuilder forTrainedModelDeploymentNodesStats. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TrainedModelDeploymentNodesStats>_DESERIALIZERJson deserializer forTrainedModelDeploymentNodesStats -
Method Summary
Modifier and Type Method Description doubleaverageInferenceTimeMs()Required - The average time for each inference call to complete on this node.interrorCount()Required - The number of errors when evaluating the trained model.intinferenceCount()Required - The total number of inference calls made against this node for this model.intinferenceThreads()Required - The number of threads used by the inference process.longlastAccess()Required - The epoch time stamp of the last inference call for the model on this node.intmodelThreads()Required - The number of threads used when sending inference requests to the model.DiscoveryNodenode()Required - Information pertaining to the node.intnumberOfPendingRequests()Required - The number of inference requests queued to be processed.static TrainedModelDeploymentNodesStatsof(java.util.function.Function<TrainedModelDeploymentNodesStats.Builder,ObjectBuilder<TrainedModelDeploymentNodesStats>> fn)intrejectionExecutionCount()Required - The number of inference requests that were not processed because the queue was full.TrainedModelAllocationRoutingTableroutingState()Required - The current routing state and reason for the current routing state for this allocation.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupTrainedModelDeploymentNodesStatsDeserializer(ObjectDeserializer<TrainedModelDeploymentNodesStats.Builder> op)longstartTime()Required - The epoch timestamp when the allocation started.inttimeoutCount()Required - The number of inference requests that timed out before being processed.java.lang.StringtoString()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_threadsvalue 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_threadsvalue 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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupTrainedModelDeploymentNodesStatsDeserializer
protected static void setupTrainedModelDeploymentNodesStatsDeserializer(ObjectDeserializer<TrainedModelDeploymentNodesStats.Builder> op)
-