Class TrainedModelInferenceStats.Builder

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.TrainedModelInferenceStats.Builder
All Implemented Interfaces:
ObjectBuilder<TrainedModelInferenceStats>
Enclosing class:
TrainedModelInferenceStats

public static class TrainedModelInferenceStats.Builder
extends ObjectBuilderBase
implements ObjectBuilder<TrainedModelInferenceStats>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • failureCount

      public final TrainedModelInferenceStats.Builder failureCount​(long value)
      Required - The number of failures when using the model for inference.

      API name: failure_count

    • inferenceCount

      public final TrainedModelInferenceStats.Builder inferenceCount​(long value)
      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 final TrainedModelInferenceStats.Builder cacheMissCount​(long value)
      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 final TrainedModelInferenceStats.Builder missingAllFieldsCount​(long value)
      Required - The number of inference calls where all the training features for the model were missing.

      API name: missing_all_fields_count

    • timestamp

      public final TrainedModelInferenceStats.Builder timestamp​(Time value)
      Required - The time when the statistics were last updated.

      API name: timestamp

    • timestamp

      public final TrainedModelInferenceStats.Builder timestamp​(java.util.function.Function<Time.Builder,​ObjectBuilder<Time>> fn)
      Required - The time when the statistics were last updated.

      API name: timestamp

    • build

      Specified by:
      build in interface ObjectBuilder<TrainedModelInferenceStats>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.