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 classTrainedModelDeploymentStats.BuilderBuilder forTrainedModelDeploymentStats. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TrainedModelDeploymentStats>_DESERIALIZERJson deserializer forTrainedModelDeploymentStats -
Method Summary
Modifier and Type Method Description TrainedModelDeploymentAllocationStatusallocationStatus()Required - The detailed allocation status for the deployment.interrorCount()Required - The sum oferror_countfor all nodes in the deployment.intinferenceCount()Required - The sum ofinference_countfor all nodes in the deployment.java.lang.StringmodelId()Required - The unique identifier for the trained model.TrainedModelDeploymentNodesStatsnodes()Required - The deployent stats for each node that currently has the model allocated.intnumberOfAllocations()Required - The number of allocations requested.static TrainedModelDeploymentStatsof(java.util.function.Function<TrainedModelDeploymentStats.Builder,ObjectBuilder<TrainedModelDeploymentStats>> fn)intqueueCapacity()Required - The number of inference requests that can be queued before new requests are rejected.java.lang.Stringreason()Required - The reason for the current deployment state.intrejectedExecutionCount()Required - 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)longstartTime()Required - The epoch timestamp when the deployment started.DeploymentStatestate()Required - The overall state of the deployment.intthreadsPerAllocation()Required - The number of threads used be each allocation during inference.inttimeoutCount()Required - The sum oftimeout_countfor all nodes in the deployment.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 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_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
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_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
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_countfor all nodes in the deployment.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
-
setupTrainedModelDeploymentStatsDeserializer
protected static void setupTrainedModelDeploymentStatsDeserializer(ObjectDeserializer<TrainedModelDeploymentStats.Builder> op)
-