Class UpdateJobRequest.Builder
- All Implemented Interfaces:
WithJson<UpdateJobRequest.Builder>,ObjectBuilder<UpdateJobRequest>
- Enclosing class:
- UpdateJobRequest
UpdateJobRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal UpdateJobRequest.BuilderallowLazyOpen(Boolean value) Advanced configuration option.final UpdateJobRequest.BuilderAPI name:analysis_limitsfinal UpdateJobRequest.BuilderAPI name:analysis_limitsfinal UpdateJobRequest.BuilderbackgroundPersistInterval(Time value) Advanced configuration option.final UpdateJobRequest.BuilderAdvanced configuration option.build()Builds aUpdateJobRequest.final UpdateJobRequest.BuildercategorizationFilters(String value, String... values) API name:categorization_filtersfinal UpdateJobRequest.BuildercategorizationFilters(List<String> list) API name:categorization_filtersfinal UpdateJobRequest.BuildercustomSettings(String key, JsonData value) Advanced configuration option.final UpdateJobRequest.BuildercustomSettings(Map<String, JsonData> map) Advanced configuration option.final UpdateJobRequest.BuilderAdvanced configuration option, which affects the automatic removal of old model snapshots for this job.final UpdateJobRequest.Builderdescription(String value) A description of the job.final UpdateJobRequest.Builderdetectors(DetectorUpdate value, DetectorUpdate... values) An array of detector update objects.final UpdateJobRequest.BuilderAn array of detector update objects.final UpdateJobRequest.Builderdetectors(List<DetectorUpdate> list) An array of detector update objects.final UpdateJobRequest.BuilderA list of job groups.final UpdateJobRequest.BuilderA list of job groups.final UpdateJobRequest.BuilderRequired - Identifier for the job.final UpdateJobRequest.BuildermodelPlotConfig(ModelPlotConfig value) API name:model_plot_configfinal UpdateJobRequest.BuilderAPI name:model_plot_configfinal UpdateJobRequest.BuildermodelPruneWindow(Time value) API name:model_prune_windowfinal UpdateJobRequest.BuilderAPI name:model_prune_windowfinal UpdateJobRequest.BuildermodelSnapshotRetentionDays(Long value) Advanced configuration option, which affects the automatic removal of old model snapshots for this job.final UpdateJobRequest.BuilderSettings related to how categorization interacts with partition fields.final UpdateJobRequest.BuilderperPartitionCategorization(Function<PerPartitionCategorization.Builder, ObjectBuilder<PerPartitionCategorization>> fn) Settings related to how categorization interacts with partition fields.final UpdateJobRequest.BuilderrenormalizationWindowDays(Long value) Advanced configuration option.final UpdateJobRequest.BuilderresultsRetentionDays(Long value) Advanced configuration option.protected UpdateJobRequest.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. Iffalseand 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 totrue, 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 -
analysisLimits
API name:analysis_limits -
analysisLimits
public final UpdateJobRequest.Builder analysisLimits(Function<AnalysisMemoryLimit.Builder, ObjectBuilder<AnalysisMemoryLimit>> fn) 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 the value too low. If the job is open when you make the update, you must stop the datafeed, close the job, then reopen the job and restart the datafeed for the changes to take effect.API name:
background_persist_interval -
backgroundPersistInterval
public final UpdateJobRequest.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 the value too low. If the job is open when you make the update, you must stop the datafeed, close the job, then reopen the job and restart the datafeed for the changes to take effect.API name:
background_persist_interval -
categorizationFilters
API name:categorization_filtersAdds all elements of
listtocategorizationFilters. -
categorizationFilters
API name:categorization_filtersAdds one or more values to
categorizationFilters. -
customSettings
Advanced configuration option. Contains custom meta data about the job. For example, it can contain custom URL information as shown in Adding custom URLs to machine learning results.API name:
custom_settingsAdds all entries of
maptocustomSettings. -
customSettings
Advanced configuration option. Contains custom meta data about the job. For example, it can contain custom URL information as shown in Adding custom URLs to machine learning results.API name:
custom_settingsAdds an entry to
customSettings. -
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. For jobs created before version 7.8.0, the default value matchesmodel_snapshot_retention_days.API name:
daily_model_snapshot_retention_after_days -
description
A description of the job.API name:
description -
detectors
An array of detector update objects.API name:
detectorsAdds all elements of
listtodetectors. -
detectors
An array of detector update objects.API name:
detectorsAdds one or more values to
detectors. -
detectors
public final UpdateJobRequest.Builder detectors(Function<DetectorUpdate.Builder, ObjectBuilder<DetectorUpdate>> fn) An array of detector update objects.API name:
detectorsAdds a value to
detectorsusing a builder lambda. -
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. -
jobId
Required - Identifier for the job.API name:
job_id -
modelPlotConfig
API name:model_plot_config -
modelPlotConfig
public final UpdateJobRequest.Builder modelPlotConfig(Function<ModelPlotConfig.Builder, ObjectBuilder<ModelPlotConfig>> fn) API name:model_plot_config -
modelPruneWindow
API name:model_prune_window -
modelPruneWindow
public final UpdateJobRequest.Builder modelPruneWindow(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:model_prune_window -
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.API name:
model_snapshot_retention_days -
perPartitionCategorization
public final UpdateJobRequest.Builder perPartitionCategorization(@Nullable PerPartitionCategorization value) Settings related to how categorization interacts with partition fields.API name:
per_partition_categorization -
perPartitionCategorization
public final UpdateJobRequest.Builder perPartitionCategorization(Function<PerPartitionCategorization.Builder, ObjectBuilder<PerPartitionCategorization>> fn) Settings related to how categorization interacts with partition fields.API name:
per_partition_categorization -
renormalizationWindowDays
Advanced configuration option. The period over which adjustments to the score are applied, as new data is seen.API name:
renormalization_window_days -
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.API name:
results_retention_days -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<UpdateJobRequest.Builder>
-
build
Builds aUpdateJobRequest.- Specified by:
buildin interfaceObjectBuilder<UpdateJobRequest>- Throws:
NullPointerException- if some of the required fields are null.
-