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
Get anomaly detection job results for categories.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<GetCategoriesRequest>Json deserializer forGetCategoriesRequeststatic final Endpoint<GetCategoriesRequest,GetCategoriesResponse, ErrorResponse> Endpoint "ml.get_categories". -
Method Summary
Modifier and TypeMethodDescriptionfinal StringIdentifier for the category, which is unique in the job.final Integerfrom()Skips the specified number of categories.final StringjobId()Required - Identifier for the anomaly detection job.static GetCategoriesRequestfinal Pagepage()Configures pagination.final StringOnly 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 voidfinal Integersize()Specifies the maximum number of categories to obtain.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forGetCategoriesRequest -
_ENDPOINT
Endpoint "ml.get_categories".
-
-
Method Details
-
of
public static GetCategoriesRequest of(Function<GetCategoriesRequest.Builder, ObjectBuilder<GetCategoriesRequest>> fn) -
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
Skips the specified number of categories.API name:
from -
jobId
Required - Identifier for the anomaly detection job.API name:
job_id -
page
Configures pagination. This parameter has thefromandsizeproperties.API name:
page -
partitionFieldValue
Only return categories for the specified partition.API name:
partition_field_value -
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)
-