Class TrainedModelInferenceStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TrainedModelInferenceStats.Builder>
co.elastic.clients.elasticsearch.ml.TrainedModelInferenceStats.Builder
- All Implemented Interfaces:
- WithJson<TrainedModelInferenceStats.Builder>,- ObjectBuilder<TrainedModelInferenceStats>
- Enclosing class:
- TrainedModelInferenceStats
public static class TrainedModelInferenceStats.Builder
extends WithJsonObjectBuilderBase<TrainedModelInferenceStats.Builder>
implements ObjectBuilder<TrainedModelInferenceStats>
Builder for 
TrainedModelInferenceStats.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aTrainedModelInferenceStats.cacheMissCount(int value) Required - The number of times the model was loaded for inference and was not retrieved from the cache.failureCount(int value) Required - The number of failures when using the model for inference.inferenceCount(int value) Required - The total number of times the model has been called for inference.missingAllFieldsCount(int value) Required - The number of inference calls where all the training features for the model were missing.protected TrainedModelInferenceStats.Builderself()timestamp(long value) Required - The time when the statistics were last updated.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
cacheMissCountRequired - The number of times the model was loaded for inference and was not retrieved from the cache. If this number is close to theinference_count, the cache is not being appropriately used. This can be solved by increasing the cache size or its time-to-live (TTL). Refer to general machine learning settings for the appropriate settings.API name: cache_miss_count
- 
failureCountRequired - The number of failures when using the model for inference.API name: failure_count
- 
inferenceCountRequired - 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
- 
missingAllFieldsCountRequired - The number of inference calls where all the training features for the model were missing.API name: missing_all_fields_count
- 
timestampRequired - The time when the statistics were last updated.API name: timestamp
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<TrainedModelInferenceStats.Builder>
 
- 
buildBuilds aTrainedModelInferenceStats.- Specified by:
- buildin interface- ObjectBuilder<TrainedModelInferenceStats>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-