Class GetOverallBucketsRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class GetOverallBucketsRequest extends RequestBase implements JsonpSerializable
The overall_score is calculated by combining the scores of all
the buckets within the overall bucket span. First, the maximum
anomaly_score per anomaly detection job in the overall bucket is
calculated. Then the top_n of those scores are averaged to
result in the overall_score. This means that you can fine-tune
the overall_score so that it is more or less sensitive to the
number of jobs that detect an anomaly at the same time. For example, if you
set top_n to 1, the overall_score is
the maximum bucket score in the overall bucket. Alternatively, if you set
top_n to the number of jobs, the overall_score is
high only when all jobs detect anomalies in that overall bucket. If you set
the bucket_span parameter (to a value greater than its default),
the overall_score is the maximum overall_score of
the overall buckets that have a span equal to the jobs' largest bucket span.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetOverallBucketsRequest.BuilderBuilder forGetOverallBucketsRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<GetOverallBucketsRequest>_DESERIALIZERJson deserializer forGetOverallBucketsRequeststatic Endpoint<GetOverallBucketsRequest,GetOverallBucketsResponse,ErrorResponse>_ENDPOINTEndpoint "ml.get_overall_buckets". -
Method Summary
Modifier and Type Method Description java.lang.BooleanallowNoJobs()Deprecated.7.10.0java.lang.BooleanallowNoMatch()Refer to the description for theallow_no_matchquery parameter.TimebucketSpan()Refer to the description for thebucket_spanquery parameter.Timeend()Refer to the description for theendquery parameter.java.lang.BooleanexcludeInterim()Refer to the description for theexclude_interimquery parameter.java.lang.StringjobId()Required - Identifier for the anomaly detection job.static GetOverallBucketsRequestof(java.util.function.Function<GetOverallBucketsRequest.Builder,ObjectBuilder<GetOverallBucketsRequest>> fn)java.lang.StringoverallScore()Refer to the description for theoverall_scorequery parameter.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupGetOverallBucketsRequestDeserializer(ObjectDeserializer<GetOverallBucketsRequest.Builder> op)Timestart()Refer to the description for thestartquery parameter.java.lang.IntegertopN()Refer to the description for thetop_nquery parameter.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forGetOverallBucketsRequest -
_ENDPOINT
public static final Endpoint<GetOverallBucketsRequest,GetOverallBucketsResponse,ErrorResponse> _ENDPOINTEndpoint "ml.get_overall_buckets".
-
-
Method Details
-
of
public static GetOverallBucketsRequest of(java.util.function.Function<GetOverallBucketsRequest.Builder,ObjectBuilder<GetOverallBucketsRequest>> fn) -
allowNoJobs
@Deprecated @Nullable public final java.lang.Boolean allowNoJobs()Deprecated.7.10.0API name:allow_no_jobs -
allowNoMatch
@Nullable public final java.lang.Boolean allowNoMatch()Refer to the description for theallow_no_matchquery parameter.API name:
allow_no_match -
bucketSpan
Refer to the description for thebucket_spanquery parameter.API name:
bucket_span -
end
Refer to the description for theendquery parameter.API name:
end -
excludeInterim
@Nullable public final java.lang.Boolean excludeInterim()Refer to the description for theexclude_interimquery parameter.API name:
exclude_interim -
jobId
public final java.lang.String jobId()Required - Identifier for the anomaly detection job. It can be a job identifier, a group name, a comma-separated list of jobs or groups, or a wildcard expression.You can summarize the bucket results for all anomaly detection jobs by using
_allor by specifying*as the<job_id>.API name:
job_id -
overallScore
@Nullable public final java.lang.String overallScore()Refer to the description for theoverall_scorequery parameter.API name:
overall_score -
start
Refer to the description for thestartquery parameter.API name:
start -
topN
@Nullable public final java.lang.Integer topN()Refer to the description for thetop_nquery parameter.API name:
top_n -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupGetOverallBucketsRequestDeserializer
protected static void setupGetOverallBucketsRequestDeserializer(ObjectDeserializer<GetOverallBucketsRequest.Builder> op)
-