Class DelayedDataCheckConfig
java.lang.Object
org.elasticsearch.client.ml.datafeed.DelayedDataCheckConfig
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class DelayedDataCheckConfig
extends java.lang.Object
implements org.elasticsearch.common.xcontent.ToXContentObject
The configuration object containing the delayed data check settings.
See
enabledDelayedDataCheckConfig(TimeValue) for creating a new
enabled datacheck with the given check_window
See disabledDelayedDataCheckConfig() for creating a config for disabling
delayed data checking.-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static org.elasticsearch.common.ParseFieldCHECK_WINDOWstatic org.elasticsearch.common.ParseFieldENABLEDstatic org.elasticsearch.common.xcontent.ConstructingObjectParser<DelayedDataCheckConfig,java.lang.Void>PARSER -
Method Summary
Modifier and Type Method Description static DelayedDataCheckConfigdisabledDelayedDataCheckConfig()This creates a new DelayedDataCheckConfig that disables the data check.static DelayedDataCheckConfigenabledDelayedDataCheckConfig(org.elasticsearch.common.unit.TimeValue timeValue)This creates a new DelayedDataCheckConfig that has a check_window of the passed `timeValue` We query the index to the latest finalized bucket from this TimeValue in the past looking to see if any data has been indexed since the data was read with the Datafeed.booleanequals(java.lang.Object obj)org.elasticsearch.common.unit.TimeValuegetCheckWindow()inthashCode()booleanisEnabled()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
-
Field Details
-
ENABLED
public static final org.elasticsearch.common.ParseField ENABLED -
CHECK_WINDOW
public static final org.elasticsearch.common.ParseField CHECK_WINDOW -
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<DelayedDataCheckConfig,java.lang.Void> PARSER
-
-
Method Details
-
enabledDelayedDataCheckConfig
public static DelayedDataCheckConfig enabledDelayedDataCheckConfig(org.elasticsearch.common.unit.TimeValue timeValue)This creates a new DelayedDataCheckConfig that has a check_window of the passed `timeValue` We query the index to the latest finalized bucket from this TimeValue in the past looking to see if any data has been indexed since the data was read with the Datafeed. The window must be larger than theAnalysisConfig.bucketSpan, less than 24 hours, and span less than 10,000x buckets.- Parameters:
timeValue- The time length in the past from the latest finalized bucket to look for latent data. If `null` is provided, the appropriate window is calculated when it is used
-
disabledDelayedDataCheckConfig
This creates a new DelayedDataCheckConfig that disables the data check. -
isEnabled
public boolean isEnabled() -
getCheckWindow
@Nullable public org.elasticsearch.common.unit.TimeValue getCheckWindow() -
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-