Class GetCategoriesRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.GetCategoriesRequest
All Implemented Interfaces:
ElasticsearchCommonRequest, JsonpSerializable

@JsonpDeserializable
public final class GetCategoriesRequest
extends RequestBase
implements JsonpSerializable
  • Field Details

  • Constructor Details

  • Method Details

    • jobId

      public java.lang.String jobId()
      Required - Identifier for the anomaly detection job.

      API name: job_id

    • categoryId

      @Nullable public 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 java.lang.Integer from()
      skips a number of categories

      API name: from

    • size

      @Nullable public java.lang.Integer size()
      specifies a max number of categories to get

      API name: size

    • partitionFieldValue

      @Nullable public java.lang.String partitionFieldValue()
      Only return categories for the specified partition.

      API name: partition_field_value

    • page

      @Nullable public Page page()
      API name: page
    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupGetCategoriesRequestDeserializer

      protected static void setupGetCategoriesRequestDeserializer​(DelegatingDeserializer<GetCategoriesRequest.Builder> op)