Class GetBucketsRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.GetBucketsRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class GetBucketsRequest extends RequestBase implements JsonpSerializable
Retrieves anomaly detection job results for one or more buckets. The API
presents a chronological view of the records, grouped by bucket.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetBucketsRequest.BuilderBuilder forGetBucketsRequest.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<GetBucketsRequest>_DESERIALIZERJson deserializer forGetBucketsRequeststatic Endpoint<GetBucketsRequest,GetBucketsResponse,ErrorResponse>_ENDPOINTEndpoint "ml.get_buckets". -
Method Summary
Modifier and Type Method Description java.lang.DoubleanomalyScore()Refer to the description for theanomaly_scorequery parameter.java.lang.Booleandesc()Refer to the description for thedescquery parameter.java.lang.Stringend()Refer to the description for theendquery parameter.java.lang.BooleanexcludeInterim()Refer to the description for theexclude_interimquery parameter.java.lang.Booleanexpand()Refer to the description for theexpandquery parameter.java.lang.Integerfrom()Skips the specified number of buckets.java.lang.StringjobId()Required - Identifier for the anomaly detection job.static GetBucketsRequestof(java.util.function.Function<GetBucketsRequest.Builder,ObjectBuilder<GetBucketsRequest>> fn)Pagepage()API name:pagevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupGetBucketsRequestDeserializer(ObjectDeserializer<GetBucketsRequest.Builder> op)java.lang.Integersize()Specifies the maximum number of buckets to obtain.java.lang.Stringsort()Refer to the desription for thesortquery parameter.java.lang.Stringstart()Refer to the description for thestartquery parameter.java.lang.Stringtimestamp()The timestamp of a single bucket result.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 forGetBucketsRequest -
_ENDPOINT
Endpoint "ml.get_buckets".
-
-
Method Details
-
of
public static GetBucketsRequest of(java.util.function.Function<GetBucketsRequest.Builder,ObjectBuilder<GetBucketsRequest>> fn) -
anomalyScore
@Nullable public final java.lang.Double anomalyScore()Refer to the description for theanomaly_scorequery parameter.API name:
anomaly_score -
desc
@Nullable public final java.lang.Boolean desc()Refer to the description for thedescquery parameter.API name:
desc -
end
@Nullable public final java.lang.String 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 -
expand
@Nullable public final java.lang.Boolean expand()Refer to the description for theexpandquery parameter.API name:
expand -
from
@Nullable public final java.lang.Integer from()Skips the specified number of buckets.API name:
from -
jobId
public final java.lang.String jobId()Required - Identifier for the anomaly detection job.API name:
job_id -
page
API name:page -
size
@Nullable public final java.lang.Integer size()Specifies the maximum number of buckets to obtain.API name:
size -
sort
@Nullable public final java.lang.String sort()Refer to the desription for thesortquery parameter.API name:
sort -
start
@Nullable public final java.lang.String start()Refer to the description for thestartquery parameter.API name:
start -
timestamp
@Nullable public final java.lang.String timestamp()The timestamp of a single bucket result. If you do not specify this parameter, the API returns information about all buckets.API name:
timestamp -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupGetBucketsRequestDeserializer
protected static void setupGetBucketsRequestDeserializer(ObjectDeserializer<GetBucketsRequest.Builder> op)
-