Class PutJobRequest.Builder
- All Implemented Interfaces:
WithJson<PutJobRequest.Builder>,ObjectBuilder<PutJobRequest>
- Enclosing class:
- PutJobRequest
PutJobRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal PutJobRequest.BuilderallowLazyOpen(Boolean value) Advanced configuration option.final PutJobRequest.BuilderallowNoIndices(Boolean value) Iftrue, wildcard indices expressions that resolve into no concrete indices are ignored.final PutJobRequest.BuilderanalysisConfig(AnalysisConfig value) Required - Specifies how to analyze the data.final PutJobRequest.BuilderRequired - Specifies how to analyze the data.final PutJobRequest.BuilderanalysisLimits(AnalysisLimits value) Limits can be applied for the resources required to hold the mathematical models in memory.final PutJobRequest.BuilderLimits can be applied for the resources required to hold the mathematical models in memory.final PutJobRequest.BuilderbackgroundPersistInterval(Time value) Advanced configuration option.final PutJobRequest.BuilderAdvanced configuration option.build()Builds aPutJobRequest.final PutJobRequest.BuildercustomSettings(JsonData value) Advanced configuration option.final PutJobRequest.BuilderAdvanced configuration option, which affects the automatic removal of old model snapshots for this job.final PutJobRequest.BuilderdataDescription(DataDescription value) Required - Defines the format of the input data when you send data to the job by using the post data API.final PutJobRequest.BuilderRequired - Defines the format of the input data when you send data to the job by using the post data API.final PutJobRequest.BuilderdatafeedConfig(DatafeedConfig value) Defines a datafeed for the anomaly detection job.final PutJobRequest.BuilderDefines a datafeed for the anomaly detection job.final PutJobRequest.Builderdescription(String value) A description of the job.final PutJobRequest.BuilderexpandWildcards(ExpandWildcard value, ExpandWildcard... values) Type of index that wildcard patterns can match.final PutJobRequest.BuilderexpandWildcards(List<ExpandWildcard> list) Type of index that wildcard patterns can match.final PutJobRequest.BuilderA list of job groups.final PutJobRequest.BuilderA list of job groups.final PutJobRequest.BuilderignoreThrottled(Boolean value) Deprecated.7.16.0final PutJobRequest.BuilderignoreUnavailable(Boolean value) Iftrue, unavailable indices (missing or closed) are ignored.final PutJobRequest.BuilderRequired - The identifier for the anomaly detection job.final PutJobRequest.BuildermodelPlotConfig(ModelPlotConfig value) This advanced configuration option stores model information along with the results.final PutJobRequest.BuilderThis advanced configuration option stores model information along with the results.final PutJobRequest.BuildermodelSnapshotRetentionDays(Long value) Advanced configuration option, which affects the automatic removal of old model snapshots for this job.final PutJobRequest.BuilderrenormalizationWindowDays(Long value) Advanced configuration option.final PutJobRequest.BuilderresultsIndexName(String value) A text string that affects the name of the machine learning results index.final PutJobRequest.BuilderresultsRetentionDays(Long value) Advanced configuration option.protected PutJobRequest.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
-
allowLazyOpen
Advanced configuration option. Specifies whether this job can open when there is insufficient machine learning node capacity for it to be immediately assigned to a node. By default, if a machine learning node with capacity to run the job cannot immediately be found, the open anomaly detection jobs API returns an error. However, this is also subject to the cluster-widexpack.ml.max_lazy_ml_nodessetting. If this option is set to true, the open anomaly detection jobs API does not return an error and the job waits in the opening state until sufficient machine learning node capacity is available.API name:
allow_lazy_open -
allowNoIndices
Iftrue, 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 -
analysisConfig
Required - Specifies how to analyze the data. After you create a job, you cannot change the analysis configuration; all the properties are informational.API name:
analysis_config -
analysisConfig
public final PutJobRequest.Builder analysisConfig(Function<AnalysisConfig.Builder, ObjectBuilder<AnalysisConfig>> fn) Required - Specifies how to analyze the data. After you create a job, you cannot change the analysis configuration; all the properties are informational.API name:
analysis_config -
analysisLimits
Limits can be applied for the resources required to hold the mathematical models in memory. These limits are approximate and can be set per job. They do not control the memory used by other processes, for example the Elasticsearch Java processes.API name:
analysis_limits -
analysisLimits
public final PutJobRequest.Builder analysisLimits(Function<AnalysisLimits.Builder, ObjectBuilder<AnalysisLimits>> fn) Limits can be applied for the resources required to hold the mathematical models in memory. These limits are approximate and can be set per job. They do not control the memory used by other processes, for example the Elasticsearch Java processes.API name:
analysis_limits -
backgroundPersistInterval
Advanced configuration option. The time between each periodic persistence of the model. The default value is a randomized value between 3 to 4 hours, which avoids all jobs persisting at exactly the same time. The smallest allowed value is 1 hour. For very large models (several GB), persistence could take 10-20 minutes, so do not set thebackground_persist_intervalvalue too low.API name:
background_persist_interval -
backgroundPersistInterval
public final PutJobRequest.Builder backgroundPersistInterval(Function<Time.Builder, ObjectBuilder<Time>> fn) Advanced configuration option. The time between each periodic persistence of the model. The default value is a randomized value between 3 to 4 hours, which avoids all jobs persisting at exactly the same time. The smallest allowed value is 1 hour. For very large models (several GB), persistence could take 10-20 minutes, so do not set thebackground_persist_intervalvalue too low.API name:
background_persist_interval -
customSettings
Advanced configuration option. Contains custom meta data about the job.API name:
custom_settings -
dailyModelSnapshotRetentionAfterDays
Advanced configuration option, which affects the automatic removal of old model snapshots for this job. It specifies a period of time (in days) after which only the first snapshot per day is retained. This period is relative to the timestamp of the most recent snapshot for this job. Valid values range from 0 tomodel_snapshot_retention_days.API name:
daily_model_snapshot_retention_after_days -
dataDescription
Required - Defines the format of the input data when you send data to the job by using the post data API. Note that when configure a datafeed, these properties are automatically set. When data is received via the post data API, it is not stored in Elasticsearch. Only the results for anomaly detection are retained.API name:
data_description -
dataDescription
public final PutJobRequest.Builder dataDescription(Function<DataDescription.Builder, ObjectBuilder<DataDescription>> fn) Required - Defines the format of the input data when you send data to the job by using the post data API. Note that when configure a datafeed, these properties are automatically set. When data is received via the post data API, it is not stored in Elasticsearch. Only the results for anomaly detection are retained.API name:
data_description -
datafeedConfig
Defines a datafeed for the anomaly detection job. If Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead.API name:
datafeed_config -
datafeedConfig
public final PutJobRequest.Builder datafeedConfig(Function<DatafeedConfig.Builder, ObjectBuilder<DatafeedConfig>> fn) Defines a datafeed for the anomaly detection job. If Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead.API name:
datafeed_config -
description
A description of the job.API name:
description -
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
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. -
groups
A list of job groups. A job can belong to no groups or many.API name:
groupsAdds all elements of
listtogroups. -
groups
A list of job groups. A job can belong to no groups or many.API name:
groupsAdds one or more values to
groups. -
ignoreThrottled
Deprecated.7.16.0Iftrue, concrete, expanded or aliased indices are ignored when frozen.API name:
ignore_throttled -
jobId
Required - The identifier for the anomaly detection job. 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:
job_id -
modelPlotConfig
This advanced configuration option stores model information along with the results. It provides a more detailed view into anomaly detection. If you enable model plot it can add considerable overhead to the performance of the system; it is not feasible for jobs with many entities. Model plot provides a simplified and indicative view of the model and its bounds. It does not display complex features such as multivariate correlations or multimodal data. As such, anomalies may occasionally be reported which cannot be seen in the model plot. Model plot config can be configured when the job is created or updated later. It must be disabled if performance issues are experienced.API name:
model_plot_config -
modelPlotConfig
public final PutJobRequest.Builder modelPlotConfig(Function<ModelPlotConfig.Builder, ObjectBuilder<ModelPlotConfig>> fn) This advanced configuration option stores model information along with the results. It provides a more detailed view into anomaly detection. If you enable model plot it can add considerable overhead to the performance of the system; it is not feasible for jobs with many entities. Model plot provides a simplified and indicative view of the model and its bounds. It does not display complex features such as multivariate correlations or multimodal data. As such, anomalies may occasionally be reported which cannot be seen in the model plot. Model plot config can be configured when the job is created or updated later. It must be disabled if performance issues are experienced.API name:
model_plot_config -
modelSnapshotRetentionDays
Advanced configuration option, which affects the automatic removal of old model snapshots for this job. It specifies the maximum period of time (in days) that snapshots are retained. This period is relative to the timestamp of the most recent snapshot for this job. By default, snapshots ten days older than the newest snapshot are deleted.API name:
model_snapshot_retention_days -
renormalizationWindowDays
Advanced configuration option. The period over which adjustments to the score are applied, as new data is seen. The default value is the longer of 30 days or 100 bucket spans.API name:
renormalization_window_days -
resultsIndexName
A text string that affects the name of the machine learning results index. By default, the job generates an index named.ml-anomalies-shared.API name:
results_index_name -
resultsRetentionDays
Advanced configuration option. The period of time (in days) that results are retained. Age is calculated relative to the timestamp of the latest bucket result. If this property has a non-null value, once per day at 00:30 (server time), results that are the specified number of days older than the latest bucket result are deleted from Elasticsearch. The default value is null, which means all results are retained. Annotations generated by the system also count as results for retention purposes; they are deleted after the same number of days as results. Annotations added by users are retained forever.API name:
results_retention_days -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutJobRequest.Builder>
-
build
Builds aPutJobRequest.- Specified by:
buildin interfaceObjectBuilder<PutJobRequest>- Throws:
NullPointerException- if some of the required fields are null.
-