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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<TrainedModelDeploymentStats>
Json deserializer forTrainedModelDeploymentStats
-
Method Summary
Modifier and TypeMethodDescriptionRequired - The detailed allocation status for the deployment.final String
API name:cache_size
final String
Required - The unique identifier for the trained model deployment.final int
Required - The sum oferror_count
for all nodes in the deployment.final int
Required - The sum ofinference_count
for all nodes in the deployment.final String
modelId()
Required - The unique identifier for the trained model.nodes()
Required - The deployment stats for each node that currently has the model allocated.final int
Required - The number of allocations requested.static TrainedModelDeploymentStats
final int
Required - The number of inference requests that can be queued before new requests are rejected.final String
reason()
Required - The reason for the current deployment state.final int
Required - The sum ofrejected_execution_count
for all nodes in the deployment.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
setupTrainedModelDeploymentStatsDeserializer
(ObjectDeserializer<TrainedModelDeploymentStats.Builder> op) final long
Required - The epoch timestamp when the deployment started.final DeploymentState
state()
Required - The overall state of the deployment.final int
Required - The number of threads used be each allocation during inference.final int
Required - The sum oftimeout_count
for 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_count
for all nodes in the deployment.API name:
error_count
-
inferenceCount
public final int inferenceCount()Required - The sum ofinference_count
for 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_count
for all nodes in the deployment. Individual nodes reject an inference request if the inference queue is full. The queue size is controlled by thequeue_capacity
setting 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_count
for all nodes in the deployment.API name:
timeout_count
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupTrainedModelDeploymentStatsDeserializer
protected static void setupTrainedModelDeploymentStatsDeserializer(ObjectDeserializer<TrainedModelDeploymentStats.Builder> op)
-