Class TrainedModelDeploymentStats
java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelDeploymentStats
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class TrainedModelDeploymentStats
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TrainedModelDeploymentStats>Json deserializer forTrainedModelDeploymentStats -
Method Summary
Modifier and TypeMethodDescriptionRequired - The detailed allocation status for the deployment.final StringAPI name:cache_sizefinal StringRequired - The unique identifier for the trained model deployment.final intRequired - The sum oferror_countfor all nodes in the deployment.final intRequired - The sum ofinference_countfor all nodes in the deployment.final StringmodelId()Required - The unique identifier for the trained model.nodes()Required - The deployment stats for each node that currently has the model allocated.final intRequired - The number of allocations requested.static TrainedModelDeploymentStatsfinal intRequired - The number of inference requests that can be queued before new requests are rejected.final Stringreason()Required - The reason for the current deployment state.final intRequired - The sum ofrejected_execution_countfor all nodes in the deployment.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupTrainedModelDeploymentStatsDeserializer(ObjectDeserializer<TrainedModelDeploymentStats.Builder> op) final longRequired - The epoch timestamp when the deployment started.final DeploymentStatestate()Required - The overall state of the deployment.final intRequired - The number of threads used be each allocation during inference.final intRequired - The sum oftimeout_countfor all nodes in the deployment.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forTrainedModelDeploymentStats
-
-
Method Details
-
of
-
allocationStatus
Required - The detailed allocation status for the deployment.API name:
allocation_status -
cacheSize
API name:cache_size -
deploymentId
Required - The unique identifier for the trained model deployment.API name:
deployment_id -
errorCount
public final int errorCount()Required - The sum oferror_countfor all nodes in the deployment.API name:
error_count -
inferenceCount
public final int inferenceCount()Required - The sum ofinference_countfor all nodes in the deployment.API name:
inference_count -
modelId
Required - The unique identifier for the trained model.API name:
model_id -
nodes
Required - The deployment stats for each node that currently has the model allocated. In serverless, stats are reported for a single unnamed virtual node.API name:
nodes -
numberOfAllocations
public final int numberOfAllocations()Required - The number of allocations requested.API name:
number_of_allocations -
queueCapacity
public final int queueCapacity()Required - The number of inference requests that can be queued before new requests are rejected.API name:
queue_capacity -
rejectedExecutionCount
public final int rejectedExecutionCount()Required - The sum ofrejected_execution_countfor all nodes in the deployment. Individual nodes reject an inference request if the inference queue is full. The queue size is controlled by thequeue_capacitysetting in the start trained model deployment API.API name:
rejected_execution_count -
reason
Required - The reason for the current deployment state. Usually only populated when the model is not deployed to a node.API name:
reason -
startTime
public final long startTime()Required - The epoch timestamp when the deployment started.API name:
start_time -
state
Required - The overall state of the deployment.API name:
state -
threadsPerAllocation
public final int threadsPerAllocation()Required - The number of threads used be each allocation during inference.API name:
threads_per_allocation -
timeoutCount
public final int timeoutCount()Required - The sum oftimeout_countfor all nodes in the deployment.API name:
timeout_count -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupTrainedModelDeploymentStatsDeserializer
protected static void setupTrainedModelDeploymentStatsDeserializer(ObjectDeserializer<TrainedModelDeploymentStats.Builder> op)
-