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
  • Field Details

  • 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

      @Nullable public final Page 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

      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​(ObjectDeserializer<GetCategoriesRequest.Builder> op)