Class OverallBucket
java.lang.Object
co.elastic.clients.elasticsearch.ml.OverallBucket
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class OverallBucket extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
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 -
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.static OverallBucketof(java.util.function.Function<OverallBucket.Builder,ObjectBuilder<OverallBucket>> fn)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(ObjectDeserializer<OverallBucket.Builder> op)Timetimestamp()Required - The start time of the bucket for which these results were calculated.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forOverallBucket
-
-
Method Details
-
of
public static OverallBucket of(java.util.function.Function<OverallBucket.Builder,ObjectBuilder<OverallBucket>> fn) -
bucketSpan
public final 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 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 -
jobs
Required - An array of objects that contain the max_anomaly_score per job_id.API name:
jobs -
overallScore
public final double overallScore()Required - The top_n average of the maximum bucket anomaly_score per job.API name:
overall_score -
resultType
public final java.lang.String resultType()Required - Internal. This is always set to overall_bucket.API name:
result_type -
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
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupOverallBucketDeserializer
-