Class AnomalyRecord
java.lang.Object
org.elasticsearch.client.ml.job.results.AnomalyRecord
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class AnomalyRecord
extends java.lang.Object
implements org.elasticsearch.common.xcontent.ToXContentObject
Anomaly Record POJO.
Uses the object wrappers Boolean and Double so
null values
can be returned if the members have not been set.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params -
Field Summary
Fields Modifier and Type Field Description static org.elasticsearch.common.ParseFieldACTUALstatic org.elasticsearch.common.ParseFieldBUCKET_SPANstatic org.elasticsearch.common.ParseFieldBY_FIELD_NAMEstatic org.elasticsearch.common.ParseFieldBY_FIELD_VALUEstatic org.elasticsearch.common.ParseFieldCAUSESstatic org.elasticsearch.common.ParseFieldCORRELATED_BY_FIELD_VALUEstatic org.elasticsearch.common.ParseFieldDETECTOR_INDEXstatic org.elasticsearch.common.ParseFieldFIELD_NAMEMetric Results (including population metrics)static org.elasticsearch.common.ParseFieldFUNCTIONstatic org.elasticsearch.common.ParseFieldFUNCTION_DESCRIPTIONstatic org.elasticsearch.common.ParseFieldINFLUENCERSstatic org.elasticsearch.common.ParseFieldINITIAL_RECORD_SCOREstatic org.elasticsearch.common.ParseFieldMULTI_BUCKET_IMPACTstatic org.elasticsearch.common.ParseFieldOVER_FIELD_NAMEPopulation resultsstatic org.elasticsearch.common.ParseFieldOVER_FIELD_VALUEstatic org.elasticsearch.common.xcontent.ConstructingObjectParser<AnomalyRecord,java.lang.Void>PARSERstatic org.elasticsearch.common.ParseFieldPARTITION_FIELD_NAMEstatic org.elasticsearch.common.ParseFieldPARTITION_FIELD_VALUEstatic org.elasticsearch.common.ParseFieldPROBABILITYResult fields (all detector types)static org.elasticsearch.common.ParseFieldRECORD_SCORENormalizationstatic java.lang.StringRESULT_TYPE_VALUEResult typestatic org.elasticsearch.common.ParseFieldRESULTS_FIELDstatic org.elasticsearch.common.ParseFieldTYPICALFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object other)java.util.List<java.lang.Double>getActual()org.elasticsearch.common.geo.GeoPointgetActualGeoPoint()longgetBucketSpan()Bucketspan expressed in secondsjava.lang.StringgetByFieldName()java.lang.StringgetByFieldValue()java.util.List<AnomalyCause>getCauses()java.lang.StringgetCorrelatedByFieldValue()intgetDetectorIndex()java.lang.StringgetFieldName()java.lang.StringgetFunction()java.lang.StringgetFunctionDescription()java.util.List<Influence>getInfluencers()doublegetInitialRecordScore()java.lang.StringgetJobId()doublegetMultiBucketImpact()java.lang.StringgetOverFieldName()java.lang.StringgetOverFieldValue()java.lang.StringgetPartitionFieldName()java.lang.StringgetPartitionFieldValue()doublegetProbability()doublegetRecordScore()java.util.DategetTimestamp()java.util.List<java.lang.Double>getTypical()org.elasticsearch.common.geo.GeoPointgetTypicalGeoPoint()inthashCode()booleanisInterim()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.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.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
RESULT_TYPE_VALUE
public static final java.lang.String RESULT_TYPE_VALUEResult type- See Also:
- Constant Field Values
-
PROBABILITY
public static final org.elasticsearch.common.ParseField PROBABILITYResult fields (all detector types) -
MULTI_BUCKET_IMPACT
public static final org.elasticsearch.common.ParseField MULTI_BUCKET_IMPACT -
DETECTOR_INDEX
public static final org.elasticsearch.common.ParseField DETECTOR_INDEX -
BY_FIELD_NAME
public static final org.elasticsearch.common.ParseField BY_FIELD_NAME -
BY_FIELD_VALUE
public static final org.elasticsearch.common.ParseField BY_FIELD_VALUE -
CORRELATED_BY_FIELD_VALUE
public static final org.elasticsearch.common.ParseField CORRELATED_BY_FIELD_VALUE -
PARTITION_FIELD_NAME
public static final org.elasticsearch.common.ParseField PARTITION_FIELD_NAME -
PARTITION_FIELD_VALUE
public static final org.elasticsearch.common.ParseField PARTITION_FIELD_VALUE -
FUNCTION
public static final org.elasticsearch.common.ParseField FUNCTION -
FUNCTION_DESCRIPTION
public static final org.elasticsearch.common.ParseField FUNCTION_DESCRIPTION -
TYPICAL
public static final org.elasticsearch.common.ParseField TYPICAL -
ACTUAL
public static final org.elasticsearch.common.ParseField ACTUAL -
INFLUENCERS
public static final org.elasticsearch.common.ParseField INFLUENCERS -
BUCKET_SPAN
public static final org.elasticsearch.common.ParseField BUCKET_SPAN -
RESULTS_FIELD
public static final org.elasticsearch.common.ParseField RESULTS_FIELD -
FIELD_NAME
public static final org.elasticsearch.common.ParseField FIELD_NAMEMetric Results (including population metrics) -
OVER_FIELD_NAME
public static final org.elasticsearch.common.ParseField OVER_FIELD_NAMEPopulation results -
OVER_FIELD_VALUE
public static final org.elasticsearch.common.ParseField OVER_FIELD_VALUE -
CAUSES
public static final org.elasticsearch.common.ParseField CAUSES -
RECORD_SCORE
public static final org.elasticsearch.common.ParseField RECORD_SCORENormalization -
INITIAL_RECORD_SCORE
public static final org.elasticsearch.common.ParseField INITIAL_RECORD_SCORE -
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<AnomalyRecord,java.lang.Void> PARSER
-
-
Method Details
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-
getJobId
public java.lang.String getJobId() -
getDetectorIndex
public int getDetectorIndex() -
getRecordScore
public double getRecordScore() -
getInitialRecordScore
public double getInitialRecordScore() -
getTimestamp
public java.util.Date getTimestamp() -
getBucketSpan
public long getBucketSpan()Bucketspan expressed in seconds -
getProbability
public double getProbability() -
getMultiBucketImpact
public double getMultiBucketImpact() -
getByFieldName
public java.lang.String getByFieldName() -
getByFieldValue
public java.lang.String getByFieldValue() -
getPartitionFieldName
public java.lang.String getPartitionFieldName() -
getPartitionFieldValue
public java.lang.String getPartitionFieldValue() -
getFunction
public java.lang.String getFunction() -
getFunctionDescription
public java.lang.String getFunctionDescription() -
getTypical
public java.util.List<java.lang.Double> getTypical() -
getActual
public java.util.List<java.lang.Double> getActual() -
isInterim
public boolean isInterim() -
getFieldName
public java.lang.String getFieldName() -
getOverFieldName
public java.lang.String getOverFieldName() -
getOverFieldValue
public java.lang.String getOverFieldValue() -
getCauses
-
getInfluencers
-
getTypicalGeoPoint
@Nullable public org.elasticsearch.common.geo.GeoPoint getTypicalGeoPoint() -
getActualGeoPoint
@Nullable public org.elasticsearch.common.geo.GeoPoint getActualGeoPoint() -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)- Overrides:
equalsin classjava.lang.Object
-