Class TrainedModelDeploymentStats
java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelDeploymentStats
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class TrainedModelDeploymentStats extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TrainedModelDeploymentStats.Builder
Builder forTrainedModelDeploymentStats
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TrainedModelDeploymentStats>
_DESERIALIZER
Json deserializer forTrainedModelDeploymentStats
-
Method Summary
Modifier and Type Method Description TrainedModelDeploymentAllocationStatus
allocationStatus()
Required - The detailed allocation status for the deployment.int
errorCount()
Required - The sum oferror_count
for all nodes in the deployment.int
inferenceCount()
Required - The sum ofinference_count
for all nodes in the deployment.java.lang.String
modelId()
Required - The unique identifier for the trained model.TrainedModelDeploymentNodesStats
nodes()
Required - The deployent stats for each node that currently has the model allocated.int
numberOfAllocations()
Required - The number of allocations requested.static TrainedModelDeploymentStats
of(java.util.function.Function<TrainedModelDeploymentStats.Builder,ObjectBuilder<TrainedModelDeploymentStats>> fn)
int
queueCapacity()
Required - The number of inference requests that can be queued before new requests are rejected.java.lang.String
reason()
Required - The reason for the current deployment state.int
rejectedExecutionCount()
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)
long
startTime()
Required - The epoch timestamp when the deployment started.DeploymentState
state()
Required - The overall state of the deployment.int
threadsPerAllocation()
Required - The number of threads used be each allocation during inference.int
timeoutCount()
Required - The sum oftimeout_count
for all nodes in the deployment.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 forTrainedModelDeploymentStats
-
-
Method Details
-
of
public static TrainedModelDeploymentStats of(java.util.function.Function<TrainedModelDeploymentStats.Builder,ObjectBuilder<TrainedModelDeploymentStats>> fn) -
allocationStatus
Required - The detailed allocation status for the deployment.API name:
allocation_status
-
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
public final java.lang.String modelId()Required - The unique identifier for the trained model.API name:
model_id
-
nodes
Required - The deployent stats for each node that currently has the model allocated.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
public final java.lang.String 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
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupTrainedModelDeploymentStatsDeserializer
protected static void setupTrainedModelDeploymentStatsDeserializer(ObjectDeserializer<TrainedModelDeploymentStats.Builder> op)
-