Class TrainedModelInferenceStats
java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelInferenceStats
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class TrainedModelInferenceStats extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTrainedModelInferenceStats.BuilderBuilder forTrainedModelInferenceStats. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TrainedModelInferenceStats>_DESERIALIZERJson deserializer forTrainedModelInferenceStats -
Constructor Summary
Constructors Constructor Description TrainedModelInferenceStats(TrainedModelInferenceStats.Builder builder)TrainedModelInferenceStats(java.util.function.Function<TrainedModelInferenceStats.Builder,TrainedModelInferenceStats.Builder> fn) -
Method Summary
Modifier and Type Method Description longcacheMissCount()Required - The number of times the model was loaded for inference and was not retrieved from the cache.longfailureCount()Required - The number of failures when using the model for inference.longinferenceCount()Required - The total number of times the model has been called for inference.longmissingAllFieldsCount()Required - The number of inference calls where all the training features for the model were missing.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupTrainedModelInferenceStatsDeserializer(DelegatingDeserializer<TrainedModelInferenceStats.Builder> op)java.lang.Stringtimestamp()Required - The time when the statistics were last updated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forTrainedModelInferenceStats
-
-
Constructor Details
-
TrainedModelInferenceStats
-
TrainedModelInferenceStats
public TrainedModelInferenceStats(java.util.function.Function<TrainedModelInferenceStats.Builder,TrainedModelInferenceStats.Builder> fn)
-
-
Method Details
-
failureCount
public long failureCount()Required - The number of failures when using the model for inference.API name:
failure_count -
inferenceCount
public long inferenceCount()Required - The total number of times the model has been called for inference. This is across all inference contexts, including all pipelines.API name:
inference_count -
cacheMissCount
public long cacheMissCount()Required - The number of times the model was loaded for inference and was not retrieved from the cache. If this number is close to the inference_count, then the cache is not being appropriately used. This can be solved by increasing the cache size or its time-to-live (TTL). See General machine learning settings for the appropriate settings.API name:
cache_miss_count -
missingAllFieldsCount
public long missingAllFieldsCount()Required - The number of inference calls where all the training features for the model were missing.API name:
missing_all_fields_count -
timestamp
public java.lang.String timestamp()Required - The time when the statistics were last updated.API name:
timestamp -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupTrainedModelInferenceStatsDeserializer
protected static void setupTrainedModelInferenceStatsDeserializer(DelegatingDeserializer<TrainedModelInferenceStats.Builder> op)
-