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

public class InferenceStats extends Object implements org.elasticsearch.xcontent.ToXContentObject, Writeable
  • 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
    • MODEL_ID

      public static final org.elasticsearch.xcontent.ParseField MODEL_ID
    • NODE_ID

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

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

      public static final org.elasticsearch.xcontent.ParseField TYPE
    • 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, String modelId, String nodeId, Instant timeStamp)
    • InferenceStats

      public InferenceStats(StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • docId

      public static String docId(String modelId, String nodeId)
    • getMissingAllFieldsCount

      public long getMissingAllFieldsCount()
    • getInferenceCount

      public long getInferenceCount()
    • getFailureCount

      public long getFailureCount()
    • getCacheMissCount

      public long getCacheMissCount()
    • getModelId

      public String getModelId()
    • getNodeId

      public String getNodeId()
    • getTimeStamp

      public Instant getTimeStamp()
    • hasStats

      public boolean hasStats()
    • 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
    • accumulator

      public static InferenceStats.Accumulator accumulator(InferenceStats stats)
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException