Module org.elasticsearch.xcore
Class AnomalyRecord
java.lang.Object
org.elasticsearch.xpack.core.ml.job.results.AnomalyRecord
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class AnomalyRecord
extends Object
implements org.elasticsearch.xcontent.ToXContentObject, Writeable
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.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
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.ParseFieldMetric Results (including population metrics)static 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.ConstructingObjectParser<AnomalyRecord, Void> static final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldPopulation resultsstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldResult fields (all detector types)static final org.elasticsearch.xcontent.ParseFieldNormalizationstatic final StringResult typestatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ConstructingObjectParser<AnomalyRecord, Void> static final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCause(AnomalyCause cause) booleanlongBucketspan expressed in secondsintgetId()Data store ID of this record.doublegetJobId()doubledoubledoubleinthashCode()booleanvoidvoidsetAnomalyScoreExplanation(AnomalyScoreExplanation anomalyScoreExplanation) voidsetByFieldName(String value) voidsetByFieldValue(String value) voidsetCauses(List<AnomalyCause> causes) voidsetCorrelatedByFieldValue(String value) voidsetDetectorIndex(int detectorIndex) voidsetFieldName(String field) voidsetFunction(String name) voidsetFunctionDescription(String functionDescription) voidsetGeoResults(GeoResults geoResults) voidsetInfluencers(List<Influence> influencers) voidsetInitialRecordScore(double initialRecordScore) voidsetInterim(boolean interim) voidsetMultiBucketImpact(double value) voidsetOverFieldName(String name) voidsetOverFieldValue(String value) voidsetPartitionFieldName(String field) voidsetPartitionFieldValue(String value) voidsetProbability(double value) voidsetRecordScore(double recordScore) voidsetTypical(List<Double> typical) toString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
RESULT_TYPE_VALUE
Result type- See Also:
-
PROBABILITY
public static final org.elasticsearch.xcontent.ParseField PROBABILITYResult fields (all detector types) -
MULTI_BUCKET_IMPACT
public static final org.elasticsearch.xcontent.ParseField MULTI_BUCKET_IMPACT -
BY_FIELD_NAME
public static final org.elasticsearch.xcontent.ParseField BY_FIELD_NAME -
BY_FIELD_VALUE
public static final org.elasticsearch.xcontent.ParseField BY_FIELD_VALUE -
CORRELATED_BY_FIELD_VALUE
public static final org.elasticsearch.xcontent.ParseField CORRELATED_BY_FIELD_VALUE -
PARTITION_FIELD_NAME
public static final org.elasticsearch.xcontent.ParseField PARTITION_FIELD_NAME -
PARTITION_FIELD_VALUE
public static final org.elasticsearch.xcontent.ParseField PARTITION_FIELD_VALUE -
FUNCTION
public static final org.elasticsearch.xcontent.ParseField FUNCTION -
FUNCTION_DESCRIPTION
public static final org.elasticsearch.xcontent.ParseField FUNCTION_DESCRIPTION -
TYPICAL
public static final org.elasticsearch.xcontent.ParseField TYPICAL -
ACTUAL
public static final org.elasticsearch.xcontent.ParseField ACTUAL -
INFLUENCERS
public static final org.elasticsearch.xcontent.ParseField INFLUENCERS -
BUCKET_SPAN
public static final org.elasticsearch.xcontent.ParseField BUCKET_SPAN -
GEO_RESULTS
public static final org.elasticsearch.xcontent.ParseField GEO_RESULTS -
ANOMALY_SCORE_EXPLANATION
public static final org.elasticsearch.xcontent.ParseField ANOMALY_SCORE_EXPLANATION -
RESULTS_FIELD
public static final org.elasticsearch.xcontent.ParseField RESULTS_FIELD -
FIELD_NAME
public static final org.elasticsearch.xcontent.ParseField FIELD_NAMEMetric Results (including population metrics) -
OVER_FIELD_NAME
public static final org.elasticsearch.xcontent.ParseField OVER_FIELD_NAMEPopulation results -
OVER_FIELD_VALUE
public static final org.elasticsearch.xcontent.ParseField OVER_FIELD_VALUE -
CAUSES
public static final org.elasticsearch.xcontent.ParseField CAUSES -
RECORD_SCORE
public static final org.elasticsearch.xcontent.ParseField RECORD_SCORENormalization -
INITIAL_RECORD_SCORE
public static final org.elasticsearch.xcontent.ParseField INITIAL_RECORD_SCORE -
STRICT_PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<AnomalyRecord,Void> STRICT_PARSER -
LENIENT_PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<AnomalyRecord,Void> LENIENT_PARSER
-
-
Constructor Details
-
AnomalyRecord
-
AnomalyRecord
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
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
-
getJobId
-
getId
Data store ID of this record. -
getDetectorIndex
public int getDetectorIndex() -
setDetectorIndex
public void setDetectorIndex(int detectorIndex) -
getRecordScore
public double getRecordScore() -
setRecordScore
public void setRecordScore(double recordScore) -
getInitialRecordScore
public double getInitialRecordScore() -
setInitialRecordScore
public void setInitialRecordScore(double initialRecordScore) -
getTimestamp
-
getBucketSpan
public long getBucketSpan()Bucketspan expressed in seconds -
getProbability
public double getProbability() -
setProbability
public void setProbability(double value) -
getMultiBucketImpact
public double getMultiBucketImpact() -
setMultiBucketImpact
public void setMultiBucketImpact(double value) -
getByFieldName
-
setByFieldName
-
getByFieldValue
-
setByFieldValue
-
getPartitionFieldName
-
setPartitionFieldName
-
getPartitionFieldValue
-
setPartitionFieldValue
-
getFunction
-
setFunction
-
getFunctionDescription
-
setFunctionDescription
-
getTypical
-
setTypical
-
getActual
-
setActual
-
isInterim
public boolean isInterim() -
setInterim
public void setInterim(boolean interim) -
getFieldName
-
setFieldName
-
getOverFieldName
-
setOverFieldName
-
getOverFieldValue
-
setOverFieldValue
-
getCauses
-
setCauses
-
addCause
-
getInfluencers
-
setInfluencers
-
getGeoResults
-
setGeoResults
-
getAnomalyScoreExplanation
-
setAnomalyScoreExplanation
-
hashCode
public int hashCode() -
equals
-
toString
-