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 class
OverallBucket.Builder
Builder forOverallBucket
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<OverallBucket>
_DESERIALIZER
Json deserializer forOverallBucket
-
Method Summary
Modifier and Type Method Description long
bucketSpan()
Required - The length of the bucket in seconds.boolean
isInterim()
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 OverallBucket
of(java.util.function.Function<OverallBucket.Builder,ObjectBuilder<OverallBucket>> fn)
double
overallScore()
Required - The top_n average of the maximum bucket anomaly_score per job.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
setupOverallBucketDeserializer(ObjectDeserializer<OverallBucket.Builder> op)
Time
timestamp()
Required - 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 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupOverallBucketDeserializer
-