Class OverallBucket
java.lang.Object
co.elastic.clients.elasticsearch.ml.OverallBucket
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class OverallBucket extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOverallBucket.BuilderBuilder forOverallBucket. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<OverallBucket>_DESERIALIZERJson deserializer forOverallBucket -
Constructor Summary
Constructors Constructor Description OverallBucket(OverallBucket.Builder builder)OverallBucket(java.util.function.Function<OverallBucket.Builder,OverallBucket.Builder> fn) -
Method Summary
Modifier and Type Method Description longbucketSpan()Required - The length of the bucket in seconds.booleanisInterim()Required - If true, this is an interim result.java.util.List<OverallBucketJob>jobs()Required - An array of objects that contain the max_anomaly_score per job_id.doubleoverallScore()Required - The top_n average of the maximum bucket anomaly_score per job.java.lang.StringresultType()Required - Internal.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupOverallBucketDeserializer(DelegatingDeserializer<OverallBucket.Builder> op)java.lang.Stringtimestamp()Required - The start time of the bucket for which these results were calculated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forOverallBucket
-
-
Constructor Details
-
OverallBucket
-
OverallBucket
-
-
Method Details
-
bucketSpan
public long bucketSpan()Required - The length of the bucket in seconds. Matches the job with the longest bucket_span value.API name:
bucket_span -
isInterim
public 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 -
jobs
Required - An array of objects that contain the max_anomaly_score per job_id.API name:
jobs -
overallScore
public double overallScore()Required - The top_n average of the maximum bucket anomaly_score per job.API name:
overall_score -
resultType
public java.lang.String resultType()Required - Internal. This is always set to overall_bucket.API name:
result_type -
timestamp
public java.lang.String timestamp()Required - The start time of the bucket for which these results were calculated.API name:
timestamp -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupOverallBucketDeserializer
protected static void setupOverallBucketDeserializer(DelegatingDeserializer<OverallBucket.Builder> op)
-