Class PutDatafeedRequest.Builder
- All Implemented Interfaces:
WithJson<PutDatafeedRequest.Builder>,ObjectBuilder<PutDatafeedRequest>
- Enclosing class:
- PutDatafeedRequest
PutDatafeedRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregations(String key, Aggregation value) If set, the datafeed performs aggregation searches.aggregations(String key, AggregationVariant value) If set, the datafeed performs aggregation searches.If set, the datafeed performs aggregation searches.aggregations(Map<String, Aggregation> map) If set, the datafeed performs aggregation searches.allowNoIndices(Boolean value) If true, wildcard indices expressions that resolve into no concrete indices are ignored.build()Builds aPutDatafeedRequest.chunkingConfig(ChunkingConfig value) Datafeeds might be required to search over long time periods, for several months or years.Datafeeds might be required to search over long time periods, for several months or years.datafeedId(String value) Required - A numerical character string that uniquely identifies the datafeed.Specifies whether the datafeed checks for missing data and the size of the window.delayedDataCheckConfig(Function<DelayedDataCheckConfig.Builder, ObjectBuilder<DelayedDataCheckConfig>> fn) Specifies whether the datafeed checks for missing data and the size of the window.expandWildcards(ExpandWildcard value, ExpandWildcard... values) Type of index that wildcard patterns can match.expandWildcards(List<ExpandWildcard> list) Type of index that wildcard patterns can match.The interval at which scheduled queries are made while the datafeed runs in real time.The interval at which scheduled queries are made while the datafeed runs in real time.API name:headersAPI name:headersignoreThrottled(Boolean value) Deprecated.7.16.0ignoreUnavailable(Boolean value) If true, unavailable indices (missing or closed) are ignored.An array of index names.An array of index names.indicesOptions(IndicesOptions value) Specifies index expansion options that are used during searchSpecifies index expansion options that are used during searchIdentifier for the anomaly detection job.maxEmptySearches(Integer value) If a real-time datafeed has never seen any data (including during any initial training period), it automatically stops and closes the associated job after this many real-time searches return no documents.The Elasticsearch query domain-specific language (DSL).query(QueryVariant value) The Elasticsearch query domain-specific language (DSL).The Elasticsearch query domain-specific language (DSL).queryDelay(Time value) The number of seconds behind real time that data is queried.The number of seconds behind real time that data is queried.runtimeMappings(String key, RuntimeField value) Specifies runtime fields for the datafeed search.Specifies runtime fields for the datafeed search.runtimeMappings(Map<String, RuntimeField> map) Specifies runtime fields for the datafeed search.scriptFields(String key, ScriptField value) Specifies scripts that evaluate custom expressions and returns script fields to the datafeed.Specifies scripts that evaluate custom expressions and returns script fields to the datafeed.scriptFields(Map<String, ScriptField> map) Specifies scripts that evaluate custom expressions and returns script fields to the datafeed.scrollSize(Integer value) The size parameter that is used in Elasticsearch searches when the datafeed does not use aggregations.protected PutDatafeedRequest.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aggregations
If set, the datafeed performs aggregation searches. Support for aggregations is limited and should be used only with low cardinality data.API name:
aggregationsAdds all entries of
maptoaggregations. -
aggregations
If set, the datafeed performs aggregation searches. Support for aggregations is limited and should be used only with low cardinality data.API name:
aggregationsAdds an entry to
aggregations. -
aggregations
If set, the datafeed performs aggregation searches. Support for aggregations is limited and should be used only with low cardinality data.API name:
aggregationsAdds an entry to
aggregations. -
aggregations
public final PutDatafeedRequest.Builder aggregations(String key, Function<Aggregation.Builder, ObjectBuilder<Aggregation>> fn) If set, the datafeed performs aggregation searches. Support for aggregations is limited and should be used only with low cardinality data.API name:
aggregationsAdds an entry to
aggregationsusing a builder lambda. -
allowNoIndices
If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the_allstring or when no indices are specified.API name:
allow_no_indices -
chunkingConfig
Datafeeds might be required to search over long time periods, for several months or years. This search is split into time chunks in order to ensure the load on Elasticsearch is managed. Chunking configuration controls how the size of these time chunks are calculated; it is an advanced configuration option.API name:
chunking_config -
chunkingConfig
public final PutDatafeedRequest.Builder chunkingConfig(Function<ChunkingConfig.Builder, ObjectBuilder<ChunkingConfig>> fn) Datafeeds might be required to search over long time periods, for several months or years. This search is split into time chunks in order to ensure the load on Elasticsearch is managed. Chunking configuration controls how the size of these time chunks are calculated; it is an advanced configuration option.API name:
chunking_config -
datafeedId
Required - A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters.API name:
datafeed_id -
delayedDataCheckConfig
public final PutDatafeedRequest.Builder delayedDataCheckConfig(@Nullable DelayedDataCheckConfig value) Specifies whether the datafeed checks for missing data and the size of the window. The datafeed can optionally search over indices that have already been read in an effort to determine whether any data has subsequently been added to the index. If missing data is found, it is a good indication that thequery_delayis set too low and the data is being indexed after the datafeed has passed that moment in time. This check runs only on real-time datafeeds.API name:
delayed_data_check_config -
delayedDataCheckConfig
public final PutDatafeedRequest.Builder delayedDataCheckConfig(Function<DelayedDataCheckConfig.Builder, ObjectBuilder<DelayedDataCheckConfig>> fn) Specifies whether the datafeed checks for missing data and the size of the window. The datafeed can optionally search over indices that have already been read in an effort to determine whether any data has subsequently been added to the index. If missing data is found, it is a good indication that thequery_delayis set too low and the data is being indexed after the datafeed has passed that moment in time. This check runs only on real-time datafeeds.API name:
delayed_data_check_config -
expandWildcards
Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
public final PutDatafeedRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values.API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
frequency
The interval at which scheduled queries are made while the datafeed runs in real time. The default value is either the bucket span for short bucket spans, or, for longer bucket spans, a sensible fraction of the bucket span. Whenfrequencyis shorter than the bucket span, interim results for the last (partial) bucket are written then eventually overwritten by the full bucket results. If the datafeed uses aggregations, this value must be divisible by the interval of the date histogram aggregation.API name:
frequency -
frequency
The interval at which scheduled queries are made while the datafeed runs in real time. The default value is either the bucket span for short bucket spans, or, for longer bucket spans, a sensible fraction of the bucket span. Whenfrequencyis shorter than the bucket span, interim results for the last (partial) bucket are written then eventually overwritten by the full bucket results. If the datafeed uses aggregations, this value must be divisible by the interval of the date histogram aggregation.API name:
frequency -
headers
API name:headersAdds all entries of
maptoheaders. -
headers
API name:headersAdds an entry to
headers. -
ignoreThrottled
Deprecated.7.16.0If true, concrete, expanded, or aliased indices are ignored when frozen.API name:
ignore_throttled -
indices
An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the master nodes and the machine learning nodes must have theremote_cluster_clientrole.API name:
indicesAdds all elements of
listtoindices. -
indices
An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the master nodes and the machine learning nodes must have theremote_cluster_clientrole.API name:
indicesAdds one or more values to
indices. -
indicesOptions
Specifies index expansion options that are used during searchAPI name:
indices_options -
indicesOptions
public final PutDatafeedRequest.Builder indicesOptions(Function<IndicesOptions.Builder, ObjectBuilder<IndicesOptions>> fn) Specifies index expansion options that are used during searchAPI name:
indices_options -
jobId
Identifier for the anomaly detection job.API name:
job_id -
maxEmptySearches
If a real-time datafeed has never seen any data (including during any initial training period), it automatically stops and closes the associated job after this many real-time searches return no documents. In other words, it stops afterfrequencytimesmax_empty_searchesof real-time operation. If not set, a datafeed with no end time that sees no data remains started until it is explicitly stopped. By default, it is not set.API name:
max_empty_searches -
query
The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch.API name:
query -
query
The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch.API name:
query -
query
The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch.API name:
query -
queryDelay
The number of seconds behind real time that data is queried. For example, if data from 10:04 a.m. might not be searchable in Elasticsearch until 10:06 a.m., set this property to 120 seconds. The default value is randomly selected between60sand120s. This randomness improves the query performance when there are multiple jobs running on the same node.API name:
query_delay -
queryDelay
The number of seconds behind real time that data is queried. For example, if data from 10:04 a.m. might not be searchable in Elasticsearch until 10:06 a.m., set this property to 120 seconds. The default value is randomly selected between60sand120s. This randomness improves the query performance when there are multiple jobs running on the same node.API name:
query_delay -
runtimeMappings
Specifies runtime fields for the datafeed search.API name:
runtime_mappingsAdds all entries of
maptoruntimeMappings. -
runtimeMappings
Specifies runtime fields for the datafeed search.API name:
runtime_mappingsAdds an entry to
runtimeMappings. -
runtimeMappings
public final PutDatafeedRequest.Builder runtimeMappings(String key, Function<RuntimeField.Builder, ObjectBuilder<RuntimeField>> fn) Specifies runtime fields for the datafeed search.API name:
runtime_mappingsAdds an entry to
runtimeMappingsusing a builder lambda. -
scriptFields
Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. The detector configuration objects in a job can contain functions that use these script fields.API name:
script_fieldsAdds all entries of
maptoscriptFields. -
scriptFields
Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. The detector configuration objects in a job can contain functions that use these script fields.API name:
script_fieldsAdds an entry to
scriptFields. -
scriptFields
public final PutDatafeedRequest.Builder scriptFields(String key, Function<ScriptField.Builder, ObjectBuilder<ScriptField>> fn) Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. The detector configuration objects in a job can contain functions that use these script fields.API name:
script_fieldsAdds an entry to
scriptFieldsusing a builder lambda. -
scrollSize
The size parameter that is used in Elasticsearch searches when the datafeed does not use aggregations. The maximum value is the value ofindex.max_result_window, which is 10,000 by default.API name:
scroll_size -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutDatafeedRequest.Builder>
-
build
Builds aPutDatafeedRequest.- Specified by:
buildin interfaceObjectBuilder<PutDatafeedRequest>- Throws:
NullPointerException- if some of the required fields are null.
-