From af674a0ece17c9a63ba1c4aa9c9fd6a7e5c9a6cf Mon Sep 17 00:00:00 2001 From: pquentin <42327+pquentin@users.noreply.github.com> Date: Wed, 8 Oct 2025 04:07:19 +0000 Subject: [PATCH] Update rest-api-spec --- output/schema/schema.json | 25 +++++++++++++++++ .../_json_spec/indices.get_sample_stats.json | 27 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 specification/_json_spec/indices.get_sample_stats.json diff --git a/output/schema/schema.json b/output/schema/schema.json index 2ff0f73e85..48969b1f36 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -8274,6 +8274,31 @@ } ] }, + { + "availability": { + "stack": { + "stability": "experimental", + "visibility": "public" + } + }, + "description": "Get stats about a random sample of ingested data", + "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-sample", + "name": "indices.get_sample_stats", + "request": null, + "requestBodyRequired": false, + "response": null, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "GET" + ], + "path": "/{index}/_sample/stats" + } + ] + }, { "availability": { "serverless": { diff --git a/specification/_json_spec/indices.get_sample_stats.json b/specification/_json_spec/indices.get_sample_stats.json new file mode 100644 index 0000000000..04ace3b2ae --- /dev/null +++ b/specification/_json_spec/indices.get_sample_stats.json @@ -0,0 +1,27 @@ +{ + "indices.get_sample_stats": { + "documentation": { + "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-sample", + "description": "Get stats about a random sample of ingested data" + }, + "stability": "experimental", + "visibility": "public", + "headers": { + "accept": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/{index}/_sample/stats", + "methods": ["GET"], + "parts": { + "index": { + "type": "string", + "description": "The name of a data stream or index" + } + } + } + ] + } + } +}