java.lang.Object
org.elasticsearch.xpack.core.ml.job.process.autodetect.state.ModelSizeStats
All Implemented Interfaces:
Writeable, ToXContent, ToXContentObject

public class ModelSizeStats extends Object implements ToXContentObject, Writeable
Provide access to the C++ model size stats for the Java process.
  • Field Details

    • RESULT_TYPE_VALUE

      public static final String RESULT_TYPE_VALUE
      Result type
      See Also:
    • RESULT_TYPE_FIELD

      public static final ParseField RESULT_TYPE_FIELD
    • MODEL_BYTES_FIELD

      public static final ParseField MODEL_BYTES_FIELD
      Field Names
    • PEAK_MODEL_BYTES_FIELD

      public static final ParseField PEAK_MODEL_BYTES_FIELD
    • MODEL_BYTES_EXCEEDED_FIELD

      public static final ParseField MODEL_BYTES_EXCEEDED_FIELD
    • MODEL_BYTES_MEMORY_LIMIT_FIELD

      public static final ParseField MODEL_BYTES_MEMORY_LIMIT_FIELD
    • TOTAL_BY_FIELD_COUNT_FIELD

      public static final ParseField TOTAL_BY_FIELD_COUNT_FIELD
    • TOTAL_OVER_FIELD_COUNT_FIELD

      public static final ParseField TOTAL_OVER_FIELD_COUNT_FIELD
    • TOTAL_PARTITION_FIELD_COUNT_FIELD

      public static final ParseField TOTAL_PARTITION_FIELD_COUNT_FIELD
    • BUCKET_ALLOCATION_FAILURES_COUNT_FIELD

      public static final ParseField BUCKET_ALLOCATION_FAILURES_COUNT_FIELD
    • MEMORY_STATUS_FIELD

      public static final ParseField MEMORY_STATUS_FIELD
    • ASSIGNMENT_MEMORY_BASIS_FIELD

      public static final ParseField ASSIGNMENT_MEMORY_BASIS_FIELD
    • OUTPUT_MEMORY_ALLOCATOR_BYTES_FIELD

      public static final ParseField OUTPUT_MEMORY_ALLOCATOR_BYTES_FIELD
    • CATEGORIZED_DOC_COUNT_FIELD

      public static final ParseField CATEGORIZED_DOC_COUNT_FIELD
    • TOTAL_CATEGORY_COUNT_FIELD

      public static final ParseField TOTAL_CATEGORY_COUNT_FIELD
    • FREQUENT_CATEGORY_COUNT_FIELD

      public static final ParseField FREQUENT_CATEGORY_COUNT_FIELD
    • RARE_CATEGORY_COUNT_FIELD

      public static final ParseField RARE_CATEGORY_COUNT_FIELD
    • DEAD_CATEGORY_COUNT_FIELD

      public static final ParseField DEAD_CATEGORY_COUNT_FIELD
    • FAILED_CATEGORY_COUNT_FIELD

      public static final ParseField FAILED_CATEGORY_COUNT_FIELD
    • CATEGORIZATION_STATUS_FIELD

      public static final ParseField CATEGORIZATION_STATUS_FIELD
    • LOG_TIME_FIELD

      public static final ParseField LOG_TIME_FIELD
    • TIMESTAMP_FIELD

      public static final ParseField TIMESTAMP_FIELD
    • STRICT_PARSER

      public static final ConstructingObjectParser<ModelSizeStats.Builder,Void> STRICT_PARSER
    • LENIENT_PARSER

      public static final ConstructingObjectParser<ModelSizeStats.Builder,Void> LENIENT_PARSER
  • Constructor Details

  • Method Details

    • getId

      public String getId()
    • documentIdPrefix

      public static String documentIdPrefix(String jobId)
    • writeTo

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

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

      public XContentBuilder doXContentBody(XContentBuilder builder) throws IOException
      Throws:
      IOException
    • getJobId

      public String getJobId()
    • getModelBytes

      public long getModelBytes()
    • getPeakModelBytes

      public Long getPeakModelBytes()
    • getModelBytesExceeded

      public Long getModelBytesExceeded()
    • getModelBytesMemoryLimit

      public Long getModelBytesMemoryLimit()
    • getTotalByFieldCount

      public long getTotalByFieldCount()
    • getTotalPartitionFieldCount

      public long getTotalPartitionFieldCount()
    • getTotalOverFieldCount

      public long getTotalOverFieldCount()
    • getBucketAllocationFailuresCount

      public long getBucketAllocationFailuresCount()
    • getMemoryStatus

      public ModelSizeStats.MemoryStatus getMemoryStatus()
    • getAssignmentMemoryBasis

      @Nullable public ModelSizeStats.AssignmentMemoryBasis getAssignmentMemoryBasis()
    • getOutputMemmoryAllocatorBytes

      public Long getOutputMemmoryAllocatorBytes()
    • getCategorizedDocCount

      public long getCategorizedDocCount()
    • getTotalCategoryCount

      public long getTotalCategoryCount()
    • getFrequentCategoryCount

      public long getFrequentCategoryCount()
    • getRareCategoryCount

      public long getRareCategoryCount()
    • getDeadCategoryCount

      public long getDeadCategoryCount()
    • getFailedCategoryCount

      public long getFailedCategoryCount()
    • getCategorizationStatus

      public CategorizationStatus getCategorizationStatus()
    • getTimestamp

      public Date getTimestamp()
      The timestamp of the last processed record when this instance was created.
      Returns:
      The record time
    • getLogTime

      public Date getLogTime()
      The wall clock time at the point when this instance was created.
      Returns:
      The wall clock time
    • hashCode

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

      public boolean equals(Object other)
      Compare all the fields.
      Overrides:
      equals in class Object