Class DelayedDataCheckConfig
java.lang.Object
org.elasticsearch.client.ml.datafeed.DelayedDataCheckConfig
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.ToXContentObject
public class DelayedDataCheckConfig
extends Object
implements org.elasticsearch.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
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ConstructingObjectParser<DelayedDataCheckConfig,
Void> Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionstatic DelayedDataCheckConfig
This creates a new DelayedDataCheckConfig that disables the data check.static DelayedDataCheckConfig
enabledDelayedDataCheckConfig
(org.elasticsearch.core.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.boolean
org.elasticsearch.core.TimeValue
int
hashCode()
boolean
org.elasticsearch.xcontent.XContentBuilder
toXContent
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
ENABLED
public static final org.elasticsearch.xcontent.ParseField ENABLED -
CHECK_WINDOW
public static final org.elasticsearch.xcontent.ParseField CHECK_WINDOW -
PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<DelayedDataCheckConfig,Void> PARSER
-
-
Method Details
-
enabledDelayedDataCheckConfig
public static DelayedDataCheckConfig enabledDelayedDataCheckConfig(org.elasticsearch.core.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.core.TimeValue getCheckWindow() -
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceorg.elasticsearch.xcontent.ToXContent
- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-