Class AnomalyRecord
- java.lang.Object
-
- org.elasticsearch.client.ml.job.results.AnomalyRecord
-
- All Implemented Interfaces:
ToXContent,ToXContentObject
public class AnomalyRecord extends Object implements ToXContentObject
Anomaly Record POJO. Uses the object wrappers Boolean and Double sonullvalues can be returned if the members have not been set.
-
-
Nested Class Summary
-
Nested 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 ParseFieldACTUALstatic ParseFieldBUCKET_SPANstatic ParseFieldBY_FIELD_NAMEstatic ParseFieldBY_FIELD_VALUEstatic ParseFieldCAUSESstatic ParseFieldCORRELATED_BY_FIELD_VALUEstatic ParseFieldDETECTOR_INDEXstatic ParseFieldFIELD_NAMEMetric Results (including population metrics)static ParseFieldFUNCTIONstatic ParseFieldFUNCTION_DESCRIPTIONstatic ParseFieldINFLUENCERSstatic ParseFieldINITIAL_RECORD_SCOREstatic ParseFieldMULTI_BUCKET_IMPACTstatic ParseFieldOVER_FIELD_NAMEPopulation resultsstatic ParseFieldOVER_FIELD_VALUEstatic ConstructingObjectParser<AnomalyRecord,Void>PARSERstatic ParseFieldPARTITION_FIELD_NAMEstatic ParseFieldPARTITION_FIELD_VALUEstatic ParseFieldPROBABILITYResult fields (all detector types)static ParseFieldRECORD_SCORENormalizationstatic StringRESULT_TYPE_VALUEResult typestatic ParseFieldRESULTS_FIELDstatic ParseFieldTYPICAL-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)List<Double>getActual()longgetBucketSpan()Bucketspan expressed in secondsStringgetByFieldName()StringgetByFieldValue()List<AnomalyCause>getCauses()StringgetCorrelatedByFieldValue()intgetDetectorIndex()StringgetFieldName()StringgetFunction()StringgetFunctionDescription()List<Influence>getInfluencers()doublegetInitialRecordScore()StringgetJobId()doublegetMultiBucketImpact()StringgetOverFieldName()StringgetOverFieldValue()StringgetPartitionFieldName()StringgetPartitionFieldValue()doublegetProbability()doublegetRecordScore()DategetTimestamp()List<Double>getTypical()inthashCode()booleanisInterim()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
RESULT_TYPE_VALUE
public static final String RESULT_TYPE_VALUE
Result type- See Also:
- Constant Field Values
-
PROBABILITY
public static final ParseField PROBABILITY
Result fields (all detector types)
-
MULTI_BUCKET_IMPACT
public static final ParseField MULTI_BUCKET_IMPACT
-
DETECTOR_INDEX
public static final ParseField DETECTOR_INDEX
-
BY_FIELD_NAME
public static final ParseField BY_FIELD_NAME
-
BY_FIELD_VALUE
public static final ParseField BY_FIELD_VALUE
-
CORRELATED_BY_FIELD_VALUE
public static final ParseField CORRELATED_BY_FIELD_VALUE
-
PARTITION_FIELD_NAME
public static final ParseField PARTITION_FIELD_NAME
-
PARTITION_FIELD_VALUE
public static final ParseField PARTITION_FIELD_VALUE
-
FUNCTION
public static final ParseField FUNCTION
-
FUNCTION_DESCRIPTION
public static final ParseField FUNCTION_DESCRIPTION
-
TYPICAL
public static final ParseField TYPICAL
-
ACTUAL
public static final ParseField ACTUAL
-
INFLUENCERS
public static final ParseField INFLUENCERS
-
BUCKET_SPAN
public static final ParseField BUCKET_SPAN
-
RESULTS_FIELD
public static final ParseField RESULTS_FIELD
-
FIELD_NAME
public static final ParseField FIELD_NAME
Metric Results (including population metrics)
-
OVER_FIELD_NAME
public static final ParseField OVER_FIELD_NAME
Population results
-
OVER_FIELD_VALUE
public static final ParseField OVER_FIELD_VALUE
-
CAUSES
public static final ParseField CAUSES
-
RECORD_SCORE
public static final ParseField RECORD_SCORE
Normalization
-
INITIAL_RECORD_SCORE
public static final ParseField INITIAL_RECORD_SCORE
-
PARSER
public static final ConstructingObjectParser<AnomalyRecord,Void> PARSER
-
-
Method Detail
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
getJobId
public String getJobId()
-
getDetectorIndex
public int getDetectorIndex()
-
getRecordScore
public double getRecordScore()
-
getInitialRecordScore
public double getInitialRecordScore()
-
getTimestamp
public Date getTimestamp()
-
getBucketSpan
public long getBucketSpan()
Bucketspan expressed in seconds
-
getProbability
public double getProbability()
-
getMultiBucketImpact
public double getMultiBucketImpact()
-
getByFieldName
public String getByFieldName()
-
getByFieldValue
public String getByFieldValue()
-
getCorrelatedByFieldValue
public String getCorrelatedByFieldValue()
-
getPartitionFieldName
public String getPartitionFieldName()
-
getPartitionFieldValue
public String getPartitionFieldValue()
-
getFunction
public String getFunction()
-
getFunctionDescription
public String getFunctionDescription()
-
isInterim
public boolean isInterim()
-
getFieldName
public String getFieldName()
-
getOverFieldName
public String getOverFieldName()
-
getOverFieldValue
public String getOverFieldValue()
-
getCauses
public List<AnomalyCause> getCauses()
-
-