Class TrainedModelStats
java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelStats
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class TrainedModelStats extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTrainedModelStats.BuilderBuilder forTrainedModelStats. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TrainedModelStats>_DESERIALIZERJson deserializer forTrainedModelStats -
Method Summary
Modifier and Type Method Description TrainedModelDeploymentStatsdeploymentStats()A collection of deployment stats, which is present when the models are deployed.TrainedModelInferenceStatsinferenceStats()A collection of inference stats fields.java.util.Map<java.lang.String,JsonData>ingest()A collection of ingest stats for the model across all nodes.java.lang.StringmodelId()Required - The unique identifier of the trained model.TrainedModelSizeStatsmodelSizeStats()Required - A collection of model size stats.static TrainedModelStatsof(java.util.function.Function<TrainedModelStats.Builder,ObjectBuilder<TrainedModelStats>> fn)intpipelineCount()Required - The number of ingest pipelines that currently refer to the model.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupTrainedModelStatsDeserializer(ObjectDeserializer<TrainedModelStats.Builder> op)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 forTrainedModelStats
-
-
Method Details
-
of
public static TrainedModelStats of(java.util.function.Function<TrainedModelStats.Builder,ObjectBuilder<TrainedModelStats>> fn) -
deploymentStats
A collection of deployment stats, which is present when the models are deployed.API name:
deployment_stats -
inferenceStats
A collection of inference stats fields.API name:
inference_stats -
ingest
A collection of ingest stats for the model across all nodes. The values are summations of the individual node statistics. The format matches the ingest section in the nodes stats API.API name:
ingest -
modelId
public final java.lang.String modelId()Required - The unique identifier of the trained model.API name:
model_id -
modelSizeStats
Required - A collection of model size stats.API name:
model_size_stats -
pipelineCount
public final int pipelineCount()Required - The number of ingest pipelines that currently refer to the model.API name:
pipeline_count -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupTrainedModelStatsDeserializer
protected static void setupTrainedModelStatsDeserializer(ObjectDeserializer<TrainedModelStats.Builder> op)
-