Class TrainedModelStats
java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelStats
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class TrainedModelStats extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TrainedModelStats.Builder
Builder forTrainedModelStats
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TrainedModelStats>
_DESERIALIZER
Json deserializer forTrainedModelStats
-
Constructor Summary
Constructors Constructor Description TrainedModelStats(TrainedModelStats.Builder builder)
TrainedModelStats(java.util.function.Function<TrainedModelStats.Builder,TrainedModelStats.Builder> fn)
-
Method Summary
Modifier and Type Method Description TrainedModelInferenceStats
inferenceStats()
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.String
modelId()
The unique identifier of the trained model.int
pipelineCount()
The number of ingest pipelines that currently refer to the model.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
setupTrainedModelStatsDeserializer(DelegatingDeserializer<TrainedModelStats.Builder> op)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forTrainedModelStats
-
-
Constructor Details
-
TrainedModelStats
-
TrainedModelStats
public TrainedModelStats(java.util.function.Function<TrainedModelStats.Builder,TrainedModelStats.Builder> fn)
-
-
Method Details
-
modelId
public java.lang.String modelId()The unique identifier of the trained model.API name:
model_id
-
pipelineCount
public int pipelineCount()The number of ingest pipelines that currently refer to the model.API name:
pipeline_count
-
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 Nodes stats.API name:
ingest
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupTrainedModelStatsDeserializer
protected static void setupTrainedModelStatsDeserializer(DelegatingDeserializer<TrainedModelStats.Builder> op)
-