Class UpdateJobRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.UpdateJobRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<UpdateJobRequest>
- Enclosing class:
- UpdateJobRequest
public static class UpdateJobRequest.Builder extends java.lang.Object implements ObjectBuilder<UpdateJobRequest>
Builder for
UpdateJobRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description UpdateJobRequest.BuilderaddCategorizationFilters(java.lang.String value)Add a value tocategorizationFilters(List), creating the list if needed.UpdateJobRequest.BuilderaddDetectors(Detector value)Add a value todetectors(List), creating the list if needed.UpdateJobRequest.BuilderaddDetectors(java.util.function.Function<Detector.Builder,ObjectBuilder<Detector>> fn)Add a value todetectors(List), creating the list if needed.UpdateJobRequest.BuilderaddGroups(java.lang.String value)Add a value togroups(List), creating the list if needed.UpdateJobRequest.BuilderallowLazyOpen(java.lang.Boolean value)API name:allow_lazy_openUpdateJobRequest.BuilderanalysisLimits(AnalysisMemoryLimit value)API name:analysis_limitsUpdateJobRequest.BuilderanalysisLimits(java.util.function.Function<AnalysisMemoryLimit.Builder,ObjectBuilder<AnalysisMemoryLimit>> fn)API name:analysis_limitsUpdateJobRequest.BuilderbackgroundPersistInterval(java.lang.String value)Advanced configuration option.UpdateJobRequestbuild()Builds aUpdateJobRequest.UpdateJobRequest.BuildercategorizationFilters(java.lang.String... value)API name:categorization_filtersUpdateJobRequest.BuildercategorizationFilters(java.util.List<java.lang.String> value)API name:categorization_filtersUpdateJobRequest.BuildercustomSettings(java.util.Map<java.lang.String,JsonData> value)Advanced configuration option.UpdateJobRequest.BuilderdailyModelSnapshotRetentionAfterDays(java.lang.Long value)API name:daily_model_snapshot_retention_after_daysUpdateJobRequest.Builderdescription(java.lang.String value)A description of the job.UpdateJobRequest.Builderdetectors(Detector... value)An array of detector update objects.UpdateJobRequest.Builderdetectors(java.util.function.Function<Detector.Builder,ObjectBuilder<Detector>> fn)Setdetectors(List)to a singleton list.UpdateJobRequest.Builderdetectors(java.util.List<Detector> value)An array of detector update objects.UpdateJobRequest.Buildergroups(java.lang.String... value)A list of job groups.UpdateJobRequest.Buildergroups(java.util.List<java.lang.String> value)A list of job groups.UpdateJobRequest.BuilderjobId(java.lang.String value)Required - Identifier for the jobUpdateJobRequest.BuildermodelPlotConfig(ModelPlotConfig value)API name:model_plot_configUpdateJobRequest.BuildermodelPlotConfig(java.util.function.Function<ModelPlotConfig.Builder,ObjectBuilder<ModelPlotConfig>> fn)API name:model_plot_configUpdateJobRequest.BuildermodelSnapshotRetentionDays(java.lang.Long value)Advanced configuration option, which affects the automatic removal of old model snapshots for this job.UpdateJobRequest.BuilderperPartitionCategorization(PerPartitionCategorization value)Settings related to how categorization interacts with partition fields.UpdateJobRequest.BuilderperPartitionCategorization(java.util.function.Function<PerPartitionCategorization.Builder,ObjectBuilder<PerPartitionCategorization>> fn)Settings related to how categorization interacts with partition fields.UpdateJobRequest.BuilderputCustomSettings(java.lang.String key, JsonData value)Add a key/value tocustomSettings(Map), creating the map if needed.UpdateJobRequest.BuilderrenormalizationWindowDays(java.lang.Long value)Advanced configuration option.UpdateJobRequest.BuilderresultsRetentionDays(java.lang.Long value)Advanced configuration option.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
jobId
Required - Identifier for the jobAPI name:
job_id -
allowLazyOpen
API name:allow_lazy_open -
analysisLimits
API name:analysis_limits -
analysisLimits
public UpdateJobRequest.Builder analysisLimits(java.util.function.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 -
customSettings
public UpdateJobRequest.Builder customSettings(@Nullable java.util.Map<java.lang.String,JsonData> value)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_settings -
putCustomSettings
Add a key/value tocustomSettings(Map), creating the map if needed. -
categorizationFilters
public UpdateJobRequest.Builder categorizationFilters(@Nullable java.util.List<java.lang.String> value)API name:categorization_filters -
categorizationFilters
API name:categorization_filters -
addCategorizationFilters
Add a value tocategorizationFilters(List), creating the list if needed. -
description
A description of the job.API name:
description -
modelPlotConfig
API name:model_plot_config -
modelPlotConfig
public UpdateJobRequest.Builder modelPlotConfig(java.util.function.Function<ModelPlotConfig.Builder,ObjectBuilder<ModelPlotConfig>> fn)API name:model_plot_config -
dailyModelSnapshotRetentionAfterDays
public UpdateJobRequest.Builder dailyModelSnapshotRetentionAfterDays(@Nullable java.lang.Long value)API name:daily_model_snapshot_retention_after_days -
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 -
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 -
groups
A list of job groups. A job can belong to no groups or many.API name:
groups -
groups
A list of job groups. A job can belong to no groups or many.API name:
groups -
addGroups
Add a value togroups(List), creating the list if needed. -
detectors
An array of detector update objects.API name:
detectors -
detectors
An array of detector update objects.API name:
detectors -
addDetectors
Add a value todetectors(List), creating the list if needed. -
detectors
public UpdateJobRequest.Builder detectors(java.util.function.Function<Detector.Builder,ObjectBuilder<Detector>> fn)Setdetectors(List)to a singleton list. -
addDetectors
public UpdateJobRequest.Builder addDetectors(java.util.function.Function<Detector.Builder,ObjectBuilder<Detector>> fn)Add a value todetectors(List), creating the list if needed. -
perPartitionCategorization
public UpdateJobRequest.Builder perPartitionCategorization(@Nullable PerPartitionCategorization value)Settings related to how categorization interacts with partition fields.API name:
per_partition_categorization -
perPartitionCategorization
public UpdateJobRequest.Builder perPartitionCategorization(java.util.function.Function<PerPartitionCategorization.Builder,ObjectBuilder<PerPartitionCategorization>> fn)Settings related to how categorization interacts with partition fields.API name:
per_partition_categorization -
build
Builds aUpdateJobRequest.- Specified by:
buildin interfaceObjectBuilder<UpdateJobRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-