Class DelayedDataCheckConfig
java.lang.Object
org.elasticsearch.client.ml.datafeed.DelayedDataCheckConfig
- All Implemented Interfaces:
ToXContent,ToXContentObject
public class DelayedDataCheckConfig extends java.lang.Object implements 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
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
Fields Modifier and Type Field Description static ParseFieldCHECK_WINDOWstatic ParseFieldENABLEDstatic 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(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)TimeValuegetCheckWindow()inthashCode()booleanisEnabled()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)
-
Field Details
-
Method Details
-
enabledDelayedDataCheckConfig
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
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- 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
-