Class GetSampleConfigurationAction.Response

All Implemented Interfaces:
Writeable, ChunkedToXContent, ChunkedToXContentObject, RefCounted
Enclosing class:
GetSampleConfigurationAction

public static class GetSampleConfigurationAction.Response extends ActionResponse implements ChunkedToXContentObject
Response object containing the sampling configuration for a specific index.

This response contains the index name and its associated sampling configuration. The response is designed to match the expected JSON format with an array containing a single object with "index" and "configuration" fields.

  • Constructor Details

    • Response

      public Response(String index, SamplingConfiguration configuration)
      Constructs a new Response with the given index and configuration.
      Parameters:
      index - the index name
      configuration - the sampling configuration for the index, or null if no configuration exists
    • Response

      public Response(StreamInput in) throws IOException
      Constructs a new Response by deserializing from a StreamInput.
      Parameters:
      in - the stream input to read from
      Throws:
      IOException - if an I/O error occurs during deserialization
  • Method Details