Class GetSampleConfigurationAction

java.lang.Object
org.elasticsearch.action.ActionType<GetSampleConfigurationAction.Response>
org.elasticsearch.action.admin.indices.sampling.GetSampleConfigurationAction

public class GetSampleConfigurationAction extends ActionType<GetSampleConfigurationAction.Response>
Action type for retrieving sampling configuration for a specific index.

This action allows clients to get the current sampling configuration that has been set on a specific index. This action targets a single index and returns its configuration in a structured format.

The response format matches:
 {
  "index": "logs",
  "configuration": {
      "rate": ".5",
      "if": "ctx?.network?.name == 'Guest'"
  }
 }
  
See Also:
  • Field Details

    • INSTANCE

      public static final GetSampleConfigurationAction INSTANCE
      Singleton instance of the GetSampleConfigurationAction. This provides a shared reference to the action type throughout the application.
    • NAME

      public static final String NAME
      The name identifier for this action type used in the transport layer.
      See Also: