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
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
-
Field Summary
Fields Modifier and Type Field Description static org.elasticsearch.common.ParseField
CHECK_WINDOW
static org.elasticsearch.common.ParseField
ENABLED
static org.elasticsearch.common.xcontent.ConstructingObjectParser<DelayedDataCheckConfig,java.lang.Void>
PARSER
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Method Summary
Modifier and Type Method Description static DelayedDataCheckConfig
disabledDelayedDataCheckConfig()
This creates a new DelayedDataCheckConfig that disables the data check.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.boolean
equals(java.lang.Object obj)
org.elasticsearch.common.unit.TimeValue
getCheckWindow()
int
hashCode()
boolean
isEnabled()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.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.common.xcontent.ToXContentObject
isFragment
-
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:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
java.io.IOException
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-