Module org.elasticsearch.xcore
Class AnomalyRecord
java.lang.Object
org.elasticsearch.xpack.core.ml.job.results.AnomalyRecord
- All Implemented Interfaces:
Writeable,ToXContent,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.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, 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 ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldMetric Results (including population metrics)static final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ConstructingObjectParser<AnomalyRecord, Void> static final ParseFieldstatic final ParseFieldPopulation resultsstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldResult fields (all detector types)static final ParseFieldNormalizationstatic final StringResult typestatic final ParseFieldstatic final ConstructingObjectParser<AnomalyRecord, Void> static final 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) voidsetEventIngested(Instant eventIngested) 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()toXContent(XContentBuilder builder, 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
Result fields (all detector types) -
MULTI_BUCKET_IMPACT
-
BY_FIELD_NAME
-
BY_FIELD_VALUE
-
CORRELATED_BY_FIELD_VALUE
-
PARTITION_FIELD_NAME
-
PARTITION_FIELD_VALUE
-
FUNCTION
-
FUNCTION_DESCRIPTION
-
TYPICAL
-
ACTUAL
-
INFLUENCERS
-
BUCKET_SPAN
-
GEO_RESULTS
-
ANOMALY_SCORE_EXPLANATION
-
RESULTS_FIELD
-
FIELD_NAME
Metric Results (including population metrics) -
OVER_FIELD_NAME
Population results -
OVER_FIELD_VALUE
-
CAUSES
-
RECORD_SCORE
Normalization -
INITIAL_RECORD_SCORE
-
STRICT_PARSER
-
LENIENT_PARSER
-
-
Constructor Details
-
AnomalyRecord
-
AnomalyRecord
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- 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
-
getEventIngested
-
setEventIngested
-
hashCode
public int hashCode() -
equals
-
toString
-