Module org.elasticsearch.xcore
Class DatafeedTimingStats
java.lang.Object
org.elasticsearch.xpack.core.ml.datafeed.DatafeedTimingStats
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ConstructingObjectParser<DatafeedTimingStats, Void> static final ParseFieldstatic final ParseFieldstatic final ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionDatafeedTimingStats(String jobId) DatafeedTimingStats(String jobId, long searchCount, long bucketCount, double totalSearchTimeMs, ExponentialAverageCalculationContext exponentialAvgCalculationContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdocumentId(String jobId) booleanlonggetJobId()longdoubleinthashCode()voidincrementBucketCount(long count) voidincrementSearchTimeMs(double searchTimeMs) voidsetLatestRecordTimestamp(Instant latestRecordTimestamp) toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
JOB_ID
-
SEARCH_COUNT
-
BUCKET_COUNT
-
TOTAL_SEARCH_TIME_MS
-
AVG_SEARCH_TIME_PER_BUCKET_MS
-
EXPONENTIAL_AVG_CALCULATION_CONTEXT
-
EXPONENTIAL_AVG_SEARCH_TIME_PER_HOUR_MS
-
TYPE
-
PARSER
-
-
Constructor Details
-
DatafeedTimingStats
public DatafeedTimingStats(String jobId, long searchCount, long bucketCount, double totalSearchTimeMs, ExponentialAverageCalculationContext exponentialAvgCalculationContext) -
DatafeedTimingStats
-
DatafeedTimingStats
- Throws:
IOException
-
DatafeedTimingStats
-
-
Method Details
-
documentId
-
getJobId
-
getSearchCount
public long getSearchCount() -
getBucketCount
public long getBucketCount() -
getTotalSearchTimeMs
public double getTotalSearchTimeMs() -
getAvgSearchTimePerBucketMs
-
getExponentialAvgSearchTimePerHourMs
-
incrementSearchTimeMs
public void incrementSearchTimeMs(double searchTimeMs) -
incrementBucketCount
public void incrementBucketCount(long count) -
setLatestRecordTimestamp
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-