Class DatafeedTimingStats

java.lang.Object
org.elasticsearch.xpack.core.ml.datafeed.DatafeedTimingStats
All Implemented Interfaces:
Writeable, ToXContent, ToXContentObject

public class DatafeedTimingStats extends Object implements ToXContentObject, Writeable
  • Field Details

    • JOB_ID

      public static final ParseField JOB_ID
    • SEARCH_COUNT

      public static final ParseField SEARCH_COUNT
    • BUCKET_COUNT

      public static final ParseField BUCKET_COUNT
    • TOTAL_SEARCH_TIME_MS

      public static final ParseField TOTAL_SEARCH_TIME_MS
    • AVG_SEARCH_TIME_PER_BUCKET_MS

      public static final ParseField AVG_SEARCH_TIME_PER_BUCKET_MS
    • EXPONENTIAL_AVG_CALCULATION_CONTEXT

      public static final ParseField EXPONENTIAL_AVG_CALCULATION_CONTEXT
    • EXPONENTIAL_AVG_SEARCH_TIME_PER_HOUR_MS

      public static final ParseField EXPONENTIAL_AVG_SEARCH_TIME_PER_HOUR_MS
    • TYPE

      public static final ParseField TYPE
    • PARSER

      public static final ConstructingObjectParser<DatafeedTimingStats,Void> PARSER
  • Constructor Details

  • Method Details

    • documentId

      public static String documentId(String jobId)
    • getJobId

      public String getJobId()
    • getSearchCount

      public long getSearchCount()
    • getBucketCount

      public long getBucketCount()
    • getTotalSearchTimeMs

      public double getTotalSearchTimeMs()
    • getAvgSearchTimePerBucketMs

      public Double getAvgSearchTimePerBucketMs()
    • getExponentialAvgSearchTimePerHourMs

      public Double getExponentialAvgSearchTimePerHourMs()
    • incrementSearchTimeMs

      public void incrementSearchTimeMs(double searchTimeMs)
    • incrementBucketCount

      public void incrementBucketCount(long count)
    • setLatestRecordTimestamp

      public void setLatestRecordTimestamp(Instant latestRecordTimestamp)
    • 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
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object