java.lang.Object
org.elasticsearch.client.ml.inference.trainedmodel.InferenceStats
All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class InferenceStats extends Object implements org.elasticsearch.xcontent.ToXContentObject
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent

    org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.elasticsearch.xcontent.ParseField
     
    static final org.elasticsearch.xcontent.ParseField
     
    static final org.elasticsearch.xcontent.ParseField
     
    static final org.elasticsearch.xcontent.ParseField
     
    static final String
     
    static final org.elasticsearch.xcontent.ConstructingObjectParser<InferenceStats,Void>
     
    static final org.elasticsearch.xcontent.ParseField
     

    Fields inherited from interface org.elasticsearch.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
    InferenceStats(long missingAllFieldsCount, long inferenceCount, long failureCount, long cacheMissCount, Instant timeStamp)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    long
    How many cache misses occurred when inferring this model
    long
    How many inference failures occurred.
    long
    How many inference calls were made against this model
    long
    How many times this model attempted to infer with all its fields missing
    The timestamp of these statistics.
    int
     
     
    org.elasticsearch.xcontent.XContentBuilder
    toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject

    isFragment
  • Field Details

    • NAME

      public static final String NAME
      See Also:
    • MISSING_ALL_FIELDS_COUNT

      public static final org.elasticsearch.xcontent.ParseField MISSING_ALL_FIELDS_COUNT
    • INFERENCE_COUNT

      public static final org.elasticsearch.xcontent.ParseField INFERENCE_COUNT
    • CACHE_MISS_COUNT

      public static final org.elasticsearch.xcontent.ParseField CACHE_MISS_COUNT
    • FAILURE_COUNT

      public static final org.elasticsearch.xcontent.ParseField FAILURE_COUNT
    • TIMESTAMP

      public static final org.elasticsearch.xcontent.ParseField TIMESTAMP
    • PARSER

      public static final org.elasticsearch.xcontent.ConstructingObjectParser<InferenceStats,Void> PARSER
  • Constructor Details

    • InferenceStats

      public InferenceStats(long missingAllFieldsCount, long inferenceCount, long failureCount, long cacheMissCount, Instant timeStamp)
  • Method Details

    • getMissingAllFieldsCount

      public long getMissingAllFieldsCount()
      How many times this model attempted to infer with all its fields missing
    • getInferenceCount

      public long getInferenceCount()
      How many inference calls were made against this model
    • getFailureCount

      public long getFailureCount()
      How many inference failures occurred.
    • getCacheMissCount

      public long getCacheMissCount()
      How many cache misses occurred when inferring this model
    • getTimeStamp

      public Instant getTimeStamp()
      The timestamp of these statistics.
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object