Class GetCategoriesRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.GetCategoriesRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class GetCategoriesRequest extends RequestBase implements JsonpSerializable
Retrieves anomaly detection job results for one or more categories.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetCategoriesRequest.BuilderBuilder forGetCategoriesRequest.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<GetCategoriesRequest>_DESERIALIZERJson deserializer forGetCategoriesRequeststatic Endpoint<GetCategoriesRequest,GetCategoriesResponse,ErrorResponse>_ENDPOINTEndpoint "ml.get_categories". -
Method Summary
Modifier and Type Method Description java.lang.StringcategoryId()Identifier for the category, which is unique in the job.java.lang.Integerfrom()Skips the specified number of categories.java.lang.StringjobId()Required - Identifier for the anomaly detection job.static GetCategoriesRequestof(java.util.function.Function<GetCategoriesRequest.Builder,ObjectBuilder<GetCategoriesRequest>> fn)Pagepage()API name:pagejava.lang.StringpartitionFieldValue()Only return categories for the specified partition.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupGetCategoriesRequestDeserializer(ObjectDeserializer<GetCategoriesRequest.Builder> op)java.lang.Integersize()Specifies the maximum number of categories to obtain.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 forGetCategoriesRequest -
_ENDPOINT
Endpoint "ml.get_categories".
-
-
Method Details
-
of
public static GetCategoriesRequest of(java.util.function.Function<GetCategoriesRequest.Builder,ObjectBuilder<GetCategoriesRequest>> fn) -
categoryId
@Nullable public final java.lang.String categoryId()Identifier for the category, which is unique in the job. If you specify neither the category ID nor the partition_field_value, the API returns information about all categories. If you specify only the partition_field_value, it returns information about all categories for the specified partition.API name:
category_id -
from
@Nullable public final java.lang.Integer from()Skips the specified number of categories.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 -
partitionFieldValue
@Nullable public final java.lang.String partitionFieldValue()Only return categories for the specified partition.API name:
partition_field_value -
size
@Nullable public final java.lang.Integer size()Specifies the maximum number of categories to obtain.API name:
size -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupGetCategoriesRequestDeserializer
protected static void setupGetCategoriesRequestDeserializer(ObjectDeserializer<GetCategoriesRequest.Builder> op)
-