Class BucketInfluencer
java.lang.Object
co.elastic.clients.elasticsearch.ml.BucketInfluencer
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class BucketInfluencer extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BucketInfluencer.Builder
Builder forBucketInfluencer
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<BucketInfluencer>
_DESERIALIZER
Json deserializer forBucketInfluencer
-
Method Summary
Modifier and Type Method Description double
anomalyScore()
Required - A normalized score between 0-100, which is calculated for each bucket influencer.long
bucketSpan()
Required - The length of the bucket in seconds.java.lang.String
influencerFieldName()
Required - The field name of the influencer.double
initialAnomalyScore()
Required - The score between 0-100 for each bucket influencer.boolean
isInterim()
Required - If true, this is an interim result.java.lang.String
jobId()
Required - Identifier for the anomaly detection job.static BucketInfluencer
of(java.util.function.Function<BucketInfluencer.Builder,ObjectBuilder<BucketInfluencer>> fn)
double
probability()
Required - The probability that the bucket has this behavior, in the range 0 to 1.double
rawAnomalyScore()
Required - Internal.java.lang.String
resultType()
Required - Internal.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupBucketInfluencerDeserializer(ObjectDeserializer<BucketInfluencer.Builder> op)
long
timestamp()
Required - The start time of the bucket for which these results were calculated.DateTime
timestampString()
The start time of the bucket for which these results were calculated.java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forBucketInfluencer
-
-
Method Details
-
of
public static BucketInfluencer of(java.util.function.Function<BucketInfluencer.Builder,ObjectBuilder<BucketInfluencer>> fn) -
anomalyScore
public final double anomalyScore()Required - A normalized score between 0-100, which is calculated for each bucket influencer. This score might be updated as newer data is analyzed.API name:
anomaly_score
-
bucketSpan
public final long bucketSpan()Required - The length of the bucket in seconds. This value matches the bucket span that is specified in the job.API name:
bucket_span
-
influencerFieldName
public final java.lang.String influencerFieldName()Required - The field name of the influencer.API name:
influencer_field_name
-
initialAnomalyScore
public final double initialAnomalyScore()Required - The score between 0-100 for each bucket influencer. This score is the initial value that was calculated at the time the bucket was processed.API name:
initial_anomaly_score
-
isInterim
public final boolean isInterim()Required - If true, this is an interim result. In other words, the results are calculated based on partial input data.API name:
is_interim
-
jobId
public final java.lang.String jobId()Required - Identifier for the anomaly detection job.API name:
job_id
-
probability
public final double probability()Required - The probability that the bucket has this behavior, in the range 0 to 1. This value can be held to a high precision of over 300 decimal places, so theanomaly_score
is provided as a human-readable and friendly interpretation of this.API name:
probability
-
rawAnomalyScore
public final double rawAnomalyScore()Required - Internal.API name:
raw_anomaly_score
-
resultType
public final java.lang.String resultType()Required - Internal. This value is always set tobucket_influencer
.API name:
result_type
-
timestamp
public final long timestamp()Required - The start time of the bucket for which these results were calculated.API name:
timestamp
-
timestampString
The start time of the bucket for which these results were calculated.API name:
timestamp_string
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupBucketInfluencerDeserializer
protected static void setupBucketInfluencerDeserializer(ObjectDeserializer<BucketInfluencer.Builder> op)
-