From 4b5cf64fa2985fe63761bc649e57856f9e794503 Mon Sep 17 00:00:00 2001 From: Sean Zatz Date: Mon, 27 Oct 2025 17:54:24 -0400 Subject: [PATCH] Fix visibility of sampling config rest specs --- .../rest-api-spec/api/indices.delete_sample_configuration.json | 3 ++- .../api/indices.get_all_sample_configuration.json | 3 ++- .../rest-api-spec/api/indices.get_sample_configuration.json | 3 ++- .../rest-api-spec/api/indices.put_sample_configuration.json | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_sample_configuration.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_sample_configuration.json index fccb9365bbdd0..7aa130b451a24 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_sample_configuration.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_sample_configuration.json @@ -5,7 +5,8 @@ "description": "Delete sampling configuration for an index or data stream" }, "stability": "experimental", - "visibility": "public", + "visibility": "feature_flag", + "feature_flag": "random_sampling", "headers": { "accept": [ "application/json" diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_all_sample_configuration.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_all_sample_configuration.json index be2a582df0069..ae7a809825ef7 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_all_sample_configuration.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_all_sample_configuration.json @@ -5,7 +5,8 @@ "description": "Get sampling configurations for all indices and data streams" }, "stability": "experimental", - "visibility": "public", + "visibility": "feature_flag", + "feature_flag": "random_sampling", "headers": { "accept": [ "application/json" diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_sample_configuration.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_sample_configuration.json index 83f032ad5d5f8..92d0bb872c8df 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_sample_configuration.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_sample_configuration.json @@ -5,7 +5,8 @@ "description": "Get sampling configuration for an index or data stream" }, "stability": "experimental", - "visibility": "public", + "visibility": "feature_flag", + "feature_flag": "random_sampling", "headers": { "accept": [ "application/json" diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_sample_configuration.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_sample_configuration.json index bfe4307ecc80d..882a7a036dfb3 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_sample_configuration.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_sample_configuration.json @@ -5,7 +5,8 @@ "description": "Configure sampling for an index or data stream" }, "stability": "experimental", - "visibility": "public", + "visibility": "feature_flag", + "feature_flag": "random_sampling", "headers": { "accept": [ "application/json"