Class Detector
java.lang.Object
org.elasticsearch.client.ml.job.config.Detector
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
Defines the fields and functions used in the analysis. A combination of
field_name,
by_field_name and over_field_name can be used depending on the specific
function chosen. For more information see
configuring
detectors and detector functions.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ObjectParser<Detector.Builder,Void> static final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionstatic Detector.Builderbuilder()booleanThe 'by' field ornullif not set.intExcludes frequently-occurring metrics from the analysis; can apply to 'by' field, 'over' field, or bothThe Analysis fieldThe analysis function used e.g.The 'over' field ornullif not set.Segments the analysis along another field to have completely independent baselines for each instance of partitionfieldgetRules()inthashCode()booleanWhere there isn't a value for the 'by' or 'over' field should a new series be used as the 'null' series.org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
DETECTOR_DESCRIPTION_FIELD
public static final org.elasticsearch.xcontent.ParseField DETECTOR_DESCRIPTION_FIELD -
FUNCTION_FIELD
public static final org.elasticsearch.xcontent.ParseField FUNCTION_FIELD -
FIELD_NAME_FIELD
public static final org.elasticsearch.xcontent.ParseField FIELD_NAME_FIELD -
BY_FIELD_NAME_FIELD
public static final org.elasticsearch.xcontent.ParseField BY_FIELD_NAME_FIELD -
OVER_FIELD_NAME_FIELD
public static final org.elasticsearch.xcontent.ParseField OVER_FIELD_NAME_FIELD -
PARTITION_FIELD_NAME_FIELD
public static final org.elasticsearch.xcontent.ParseField PARTITION_FIELD_NAME_FIELD -
USE_NULL_FIELD
public static final org.elasticsearch.xcontent.ParseField USE_NULL_FIELD -
EXCLUDE_FREQUENT_FIELD
public static final org.elasticsearch.xcontent.ParseField EXCLUDE_FREQUENT_FIELD -
CUSTOM_RULES_FIELD
public static final org.elasticsearch.xcontent.ParseField CUSTOM_RULES_FIELD -
DETECTOR_INDEX
public static final org.elasticsearch.xcontent.ParseField DETECTOR_INDEX -
PARSER
-
-
Method Details
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
getDetectorDescription
-
getFunction
The analysis function used e.g. count, rare, min etc.- Returns:
- The function or
nullif not set
-
getFieldName
The Analysis field- Returns:
- The field to analyse
-
getByFieldName
The 'by' field ornullif not set.- Returns:
- The 'by' field
-
getOverFieldName
The 'over' field ornullif not set.- Returns:
- The 'over' field
-
getPartitionFieldName
Segments the analysis along another field to have completely independent baselines for each instance of partitionfield- Returns:
- The Partition Field
-
isUseNull
public boolean isUseNull()Where there isn't a value for the 'by' or 'over' field should a new series be used as the 'null' series.- Returns:
- true if the 'null' series should be created
-
getExcludeFrequent
Excludes frequently-occurring metrics from the analysis; can apply to 'by' field, 'over' field, or both- Returns:
- the value that the user set
-
getRules
-
getDetectorIndex
public int getDetectorIndex()- Returns:
- the detector index or a negative number if unknown
-
equals
-
hashCode
public int hashCode() -
builder
-