Class AnalysisConfig
java.lang.Object
org.elasticsearch.client.ml.job.config.AnalysisConfig
- All Implemented Interfaces:
ToXContent,ToXContentObject
public class AnalysisConfig extends java.lang.Object implements ToXContentObject
Analysis configuration options that describe which fields are
analyzed and which functions are used to detect anomalies.
The configuration can contain multiple detectors, a new anomaly detector will
be created for each detector configuration. The fields
bucketSpan, summaryCountFieldName and categorizationFieldName
apply to all detectors.
If a value has not been set it will be null
Object wrappers are used around integral types & booleans so they can take
null values.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnalysisConfig.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 ParseFieldANALYSIS_CONFIGSerialisation namesstatic ParseFieldBUCKET_SPANstatic ParseFieldCATEGORIZATION_ANALYZERstatic ParseFieldCATEGORIZATION_FIELD_NAMEstatic ParseFieldCATEGORIZATION_FILTERSstatic ParseFieldDETECTORSstatic ParseFieldINFLUENCERSstatic ParseFieldLATENCYstatic ParseFieldMULTIVARIATE_BY_FIELDSstatic ConstructingObjectParser<AnalysisConfig.Builder,java.lang.Void>PARSERstatic ParseFieldSUMMARY_COUNT_FIELD_NAME -
Method Summary
Modifier and Type Method Description static AnalysisConfig.Builderbuilder(java.util.List<Detector> detectors)java.util.List<java.lang.String>byFields()booleanequals(java.lang.Object object)java.util.List<java.lang.String>fields()TimeValuegetBucketSpan()The analysis bucket spanCategorizationAnalyzerConfiggetCategorizationAnalyzerConfig()java.lang.StringgetCategorizationFieldName()java.util.List<java.lang.String>getCategorizationFilters()java.util.List<Detector>getDetectors()The list of analysis detectors.java.util.List<java.lang.String>getInfluencers()The list of influence field namesTimeValuegetLatency()The latency interval during which out-of-order records should be handled.java.lang.BooleangetMultivariateByFields()java.lang.StringgetSummaryCountFieldName()The name of the field that contains counts for pre-summarised inputinthashCode()java.util.List<java.lang.String>overFields()java.util.List<java.lang.String>partitionFields()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)
-
Field Details
-
Method Details
-
getBucketSpan
The analysis bucket span- Returns:
- The bucketspan or
nullif not set
-
getCategorizationFieldName
public java.lang.String getCategorizationFieldName() -
getCategorizationFilters
public java.util.List<java.lang.String> getCategorizationFilters() -
getCategorizationAnalyzerConfig
-
getLatency
The latency interval during which out-of-order records should be handled.- Returns:
- The latency interval or
nullif not set
-
getSummaryCountFieldName
public java.lang.String getSummaryCountFieldName()The name of the field that contains counts for pre-summarised input- Returns:
- The field name or
nullif not set
-
getDetectors
The list of analysis detectors. In a valid configuration the list should contain at least 1Detector- Returns:
- The Detectors used in this job
-
getInfluencers
public java.util.List<java.lang.String> getInfluencers()The list of influence field names -
getMultivariateByFields
public java.lang.Boolean getMultivariateByFields() -
fields
public java.util.List<java.lang.String> fields() -
byFields
public java.util.List<java.lang.String> byFields() -
overFields
public java.util.List<java.lang.String> overFields() -
partitionFields
public java.util.List<java.lang.String> partitionFields() -
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 object)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
builder
-