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 SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<GetCategoriesRequest>Json deserializer forGetCategoriesRequeststatic final Endpoint<GetCategoriesRequest,GetCategoriesResponse, ErrorResponse> Endpoint "ml.get_categories".
- 
Method SummaryModifier 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.RequestBasetoString
- 
Field Details- 
_DESERIALIZERJson deserializer forGetCategoriesRequest
- 
_ENDPOINTEndpoint "ml.get_categories".
 
- 
- 
Method Details- 
ofpublic static GetCategoriesRequest of(Function<GetCategoriesRequest.Builder, ObjectBuilder<GetCategoriesRequest>> fn) 
- 
categoryIdIdentifier 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
- 
fromSkips the specified number of categories.API name: from
- 
jobIdRequired - Identifier for the anomaly detection job.API name: job_id
- 
pageConfigures pagination. This parameter has thefromandsizeproperties.API name: page
- 
partitionFieldValueOnly return categories for the specified partition.API name: partition_field_value
- 
sizeSpecifies the maximum number of categories to obtain.API name: size
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
setupGetCategoriesRequestDeserializerprotected static void setupGetCategoriesRequestDeserializer(ObjectDeserializer<GetCategoriesRequest.Builder> op) 
 
-