java.lang.Object
org.elasticsearch.xpack.core.ml.job.config.JobUpdate
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class JobUpdate extends Object implements Writeable, org.elasticsearch.xcontent.ToXContentObject
  • Field Details

    • DETECTORS

      public static final org.elasticsearch.xcontent.ParseField DETECTORS
    • CLEAR_JOB_FINISH_TIME

      public static final org.elasticsearch.xcontent.ParseField CLEAR_JOB_FINISH_TIME
    • PARSER

      public static final org.elasticsearch.xcontent.ConstructingObjectParser<JobUpdate.Builder,Void> PARSER
  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • getJobId

      public String getJobId()
    • getGroups

      public List<String> getGroups()
    • getDescription

      public String getDescription()
    • getDetectorUpdates

      public List<JobUpdate.DetectorUpdate> getDetectorUpdates()
    • getModelPlotConfig

      public ModelPlotConfig getModelPlotConfig()
    • getAnalysisLimits

      public AnalysisLimits getAnalysisLimits()
    • getRenormalizationWindowDays

      public Long getRenormalizationWindowDays()
    • getBackgroundPersistInterval

      public org.elasticsearch.core.TimeValue getBackgroundPersistInterval()
    • getModelSnapshotRetentionDays

      public Long getModelSnapshotRetentionDays()
    • getDailyModelSnapshotRetentionAfterDays

      public Long getDailyModelSnapshotRetentionAfterDays()
    • getResultsRetentionDays

      public Long getResultsRetentionDays()
    • getCategorizationFilters

      public List<String> getCategorizationFilters()
    • getPerPartitionCategorizationConfig

      public PerPartitionCategorizationConfig getPerPartitionCategorizationConfig()
    • getCustomSettings

      public Map<String,Object> getCustomSettings()
    • getModelSnapshotId

      public String getModelSnapshotId()
    • getModelSnapshotMinVersion

      public MlConfigVersion getModelSnapshotMinVersion()
    • getJobVersion

      public MlConfigVersion getJobVersion()
    • getClearJobFinishTime

      public Boolean getClearJobFinishTime()
    • getAllowLazyOpen

      public Boolean getAllowLazyOpen()
    • isAutodetectProcessUpdate

      public boolean isAutodetectProcessUpdate()
    • getBlocked

      public Blocked getBlocked()
    • getModelPruneWindow

      public org.elasticsearch.core.TimeValue getModelPruneWindow()
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getUpdateFields

      public Set<String> getUpdateFields()
    • mergeWithJob

      public Job mergeWithJob(Job source, ByteSizeValue maxModelMemoryLimit)
      Updates source with the new values in this object returning a new Job.
      Parameters:
      source - Source job to be updated
      maxModelMemoryLimit - The maximum model memory allowed
      Returns:
      A new job equivalent to source updated.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object