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

public class CategorizerStats extends Object implements org.elasticsearch.xcontent.ToXContentObject, Writeable
  • Field Details

    • RESULT_TYPE_VALUE

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

      public static final org.elasticsearch.xcontent.ParseField RESULT_TYPE_FIELD
    • PARTITION_FIELD_NAME

      public static final org.elasticsearch.xcontent.ParseField PARTITION_FIELD_NAME
      Field Names
    • PARTITION_FIELD_VALUE

      public static final org.elasticsearch.xcontent.ParseField PARTITION_FIELD_VALUE
    • CATEGORIZED_DOC_COUNT_FIELD

      public static final org.elasticsearch.xcontent.ParseField CATEGORIZED_DOC_COUNT_FIELD
    • TOTAL_CATEGORY_COUNT_FIELD

      public static final org.elasticsearch.xcontent.ParseField TOTAL_CATEGORY_COUNT_FIELD
    • FREQUENT_CATEGORY_COUNT_FIELD

      public static final org.elasticsearch.xcontent.ParseField FREQUENT_CATEGORY_COUNT_FIELD
    • RARE_CATEGORY_COUNT_FIELD

      public static final org.elasticsearch.xcontent.ParseField RARE_CATEGORY_COUNT_FIELD
    • DEAD_CATEGORY_COUNT_FIELD

      public static final org.elasticsearch.xcontent.ParseField DEAD_CATEGORY_COUNT_FIELD
    • FAILED_CATEGORY_COUNT_FIELD

      public static final org.elasticsearch.xcontent.ParseField FAILED_CATEGORY_COUNT_FIELD
    • CATEGORIZATION_STATUS_FIELD

      public static final org.elasticsearch.xcontent.ParseField CATEGORIZATION_STATUS_FIELD
    • LOG_TIME_FIELD

      public static final org.elasticsearch.xcontent.ParseField LOG_TIME_FIELD
    • TIMESTAMP_FIELD

      public static final org.elasticsearch.xcontent.ParseField TIMESTAMP_FIELD
    • STRICT_PARSER

      public static final org.elasticsearch.xcontent.ConstructingObjectParser<CategorizerStats.Builder,Void> STRICT_PARSER
    • LENIENT_PARSER

      public static final org.elasticsearch.xcontent.ConstructingObjectParser<CategorizerStats.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 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
    • getJobId

      public String getJobId()
    • getPartitionFieldName

      public String getPartitionFieldName()
    • getPartitionFieldValue

      public String getPartitionFieldValue()
    • 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 Instant getTimestamp()
      The model timestamp when these stats were created.
      Returns:
      The model time
    • getLogTime

      public Instant 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