Class Job
java.lang.Object
org.elasticsearch.client.ml.job.config.Job
- All Implemented Interfaces:
ToXContent,ToXContentObject
public class Job extends java.lang.Object implements ToXContentObject
This class represents a configured and created Job. The creation time is set
to the time the object was constructed and the finished time and last
data time fields are
null until the job has seen some data or it is
finished respectively.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJob.BuilderNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
Fields Modifier and Type Field Description static ParseFieldALLOW_LAZY_OPENstatic ParseFieldANALYSIS_CONFIGstatic ParseFieldANALYSIS_LIMITSstatic java.lang.StringANOMALY_DETECTOR_JOB_TYPEstatic ParseFieldBACKGROUND_PERSIST_INTERVALstatic ParseFieldCREATE_TIMEstatic ParseFieldCUSTOM_SETTINGSstatic ParseFieldDATA_DESCRIPTIONstatic ParseFieldDELETINGstatic ParseFieldDESCRIPTIONstatic ParseFieldFINISHED_TIMEstatic ParseFieldGROUPSstatic ParseFieldIDstatic ParseFieldJOB_TYPEstatic ParseFieldMODEL_PLOT_CONFIGstatic ParseFieldMODEL_SNAPSHOT_IDstatic ParseFieldMODEL_SNAPSHOT_RETENTION_DAYSstatic ObjectParser<Job.Builder,java.lang.Void>PARSERstatic ParseFieldRENORMALIZATION_WINDOW_DAYSstatic ParseFieldRESULTS_INDEX_NAMEstatic ParseFieldRESULTS_RETENTION_DAYS -
Method Summary
Modifier and Type Method Description static Job.Builderbuilder(java.lang.String id)booleanequals(java.lang.Object other)java.lang.BooleangetAllowLazyOpen()AnalysisConfiggetAnalysisConfig()The analysis configuration objectAnalysisLimitsgetAnalysisLimits()The analysis options objectTimeValuegetBackgroundPersistInterval()The background persistence intervaljava.util.DategetCreateTime()The Job creation time.java.util.Map<java.lang.String,java.lang.Object>getCustomSettings()DataDescriptiongetDataDescription()If not set the input data is assumed to be csv with a '_time' field in epoch format.java.lang.BooleangetDeleting()java.lang.StringgetDescription()The job descriptionjava.util.DategetFinishedTime()The time the job was finished ornullif not finished.java.util.List<java.lang.String>getGroups()java.lang.StringgetId()Return the Job Id.java.lang.StringgetJobType()ModelPlotConfiggetModelPlotConfig()java.lang.StringgetModelSnapshotId()java.lang.LonggetModelSnapshotRetentionDays()java.lang.LonggetRenormalizationWindowDays()The duration of the renormalization window in daysjava.lang.LonggetResultsRetentionDays()inthashCode()java.lang.StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)
-
Field Details
-
ANOMALY_DETECTOR_JOB_TYPE
public static final java.lang.String ANOMALY_DETECTOR_JOB_TYPE- See Also:
- Constant Field Values
-
ID
-
JOB_TYPE
-
GROUPS
-
ANALYSIS_CONFIG
-
ANALYSIS_LIMITS
-
CREATE_TIME
-
CUSTOM_SETTINGS
-
DATA_DESCRIPTION
-
DESCRIPTION
-
FINISHED_TIME
-
MODEL_PLOT_CONFIG
-
RENORMALIZATION_WINDOW_DAYS
-
BACKGROUND_PERSIST_INTERVAL
-
MODEL_SNAPSHOT_RETENTION_DAYS
-
RESULTS_RETENTION_DAYS
-
MODEL_SNAPSHOT_ID
-
RESULTS_INDEX_NAME
-
DELETING
-
ALLOW_LAZY_OPEN
-
PARSER
-
-
Method Details
-
getId
public java.lang.String getId()Return the Job Id.- Returns:
- The job Id string
-
getJobType
public java.lang.String getJobType() -
getGroups
public java.util.List<java.lang.String> getGroups() -
getDescription
public java.lang.String getDescription()The job description- Returns:
- job description
-
getCreateTime
public java.util.Date getCreateTime()The Job creation time. This name is preferred when serialising to the REST API.- Returns:
- The date the job was created
-
getFinishedTime
public java.util.Date getFinishedTime()The time the job was finished ornullif not finished.- Returns:
- The date the job was last retired or
null
-
getAnalysisConfig
The analysis configuration object- Returns:
- The AnalysisConfig
-
getAnalysisLimits
The analysis options object- Returns:
- The AnalysisLimits
-
getModelPlotConfig
-
getDataDescription
If not set the input data is assumed to be csv with a '_time' field in epoch format.- Returns:
- A DataDescription or
null - See Also:
DataDescription
-
getRenormalizationWindowDays
public java.lang.Long getRenormalizationWindowDays()The duration of the renormalization window in days- Returns:
- renormalization window in days
-
getBackgroundPersistInterval
The background persistence interval- Returns:
- background persistence interval
-
getModelSnapshotRetentionDays
public java.lang.Long getModelSnapshotRetentionDays() -
getResultsRetentionDays
public java.lang.Long getResultsRetentionDays() -
getCustomSettings
public java.util.Map<java.lang.String,java.lang.Object> getCustomSettings() -
getModelSnapshotId
public java.lang.String getModelSnapshotId() -
getDeleting
public java.lang.Boolean getDeleting() -
getAllowLazyOpen
public java.lang.Boolean getAllowLazyOpen() -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object other)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public final java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
builder
-