Module org.elasticsearch.xcore
Class DatafeedTimingStats
java.lang.Object
org.elasticsearch.xpack.core.ml.datafeed.DatafeedTimingStats
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.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 org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ConstructingObjectParser<DatafeedTimingStats, Void> static final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.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()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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
public static final org.elasticsearch.xcontent.ParseField JOB_ID -
SEARCH_COUNT
public static final org.elasticsearch.xcontent.ParseField SEARCH_COUNT -
BUCKET_COUNT
public static final org.elasticsearch.xcontent.ParseField BUCKET_COUNT -
TOTAL_SEARCH_TIME_MS
public static final org.elasticsearch.xcontent.ParseField TOTAL_SEARCH_TIME_MS -
AVG_SEARCH_TIME_PER_BUCKET_MS
public static final org.elasticsearch.xcontent.ParseField AVG_SEARCH_TIME_PER_BUCKET_MS -
EXPONENTIAL_AVG_CALCULATION_CONTEXT
public static final org.elasticsearch.xcontent.ParseField EXPONENTIAL_AVG_CALCULATION_CONTEXT -
EXPONENTIAL_AVG_SEARCH_TIME_PER_HOUR_MS
public static final org.elasticsearch.xcontent.ParseField EXPONENTIAL_AVG_SEARCH_TIME_PER_HOUR_MS -
TYPE
public static final org.elasticsearch.xcontent.ParseField TYPE -
PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<DatafeedTimingStats,Void> 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 org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-