From f8e7520a6381250609dd4fd67babd50157db7cb2 Mon Sep 17 00:00:00 2001 From: rao-shwe Date: Mon, 13 Oct 2025 11:32:43 +0530 Subject: [PATCH] Revert "DOC-11708 Deprecated REST API endpoint for bucket stats (#3859)" This reverts commit b8fc634094c8bdf486a7cef7f8fe690e41321620. --- modules/rest-api/pages/rest-bucket-stats.adoc | 7 +------ modules/rest-api/partials/rest-buckets-table.adoc | 8 ++------ modules/rest-api/partials/rest-xdcr-table.adoc | 5 +++-- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/modules/rest-api/pages/rest-bucket-stats.adoc b/modules/rest-api/pages/rest-bucket-stats.adoc index aaeadff1f2..b2b8afe8e8 100644 --- a/modules/rest-api/pages/rest-bucket-stats.adoc +++ b/modules/rest-api/pages/rest-bucket-stats.adoc @@ -1,16 +1,11 @@ = Getting Bucket Statistics -:description: pass:q[See the IMPORTANT note.] +:description: pass:q[To retrieve bucket statistics, use the `GET` operation with the `/pools/default/buckets/bucket_name/stats` URI.] :page-topic-type: reference :page-aliases: rest-api:rest-node-retrieve-stats -[.deprecated]#Deprecated# - [abstract] {description} -IMPORTANT: As of Couchbase Server 8.0, the REST API endpoint `GET /pools/default/buckets//stats` is deprecated. -For retrieving bucket statistics details, use xref:rest-api:rest-statistics-single.adoc[Getting a Single Statistic] or xref:rest-api:rest-statistics-multiple.adoc[Getting Multiple Statistics] instead. - == HTTP method and URI Statistics can be retrieved at the bucket level. diff --git a/modules/rest-api/partials/rest-buckets-table.adoc b/modules/rest-api/partials/rest-buckets-table.adoc index 94e8987762..87b5554d42 100644 --- a/modules/rest-api/partials/rest-buckets-table.adoc +++ b/modules/rest-api/partials/rest-buckets-table.adoc @@ -23,12 +23,8 @@ | xref:rest-api:rest-retrieve-bucket-nodes.adoc[Listing Nodes by Bucket] | `GET` -| `/pools/default/stats/range/[metric_name]/[function-expression]` -| xref:rest-api:rest-statistics-single.adoc[Getting a Single Statistic] - -| `POST` -| `/pools/default/stats/range` -| xref:rest-api:rest-statistics-multiple.adoc[Getting Multiple Statistics] +| `/pools/default/buckets/[bucket-name]/stats` +| xref:rest-api:rest-bucket-stats.adoc[Getting Bucket Statistics] | `GET` | `/pools/default/buckets/default` diff --git a/modules/rest-api/partials/rest-xdcr-table.adoc b/modules/rest-api/partials/rest-xdcr-table.adoc index 8079a782ff..de6a8c9753 100644 --- a/modules/rest-api/partials/rest-xdcr-table.adoc +++ b/modules/rest-api/partials/rest-xdcr-table.adoc @@ -42,8 +42,9 @@ | `/settings/replications/` | xref:rest-api:rest-xdcr-adv-settings.adoc[Managing Advanced Settings] + | `GET` -| `/pools/default/stats/range/[statistics_name]` -| xref:rest-api:rest-statistics-single.adoc[Getting a Single Statistic] +| `/pools/default/buckets/[source_bucket]/stats/[destination_endpoint]` +| xref:rest-api:rest-xdcr-statistics.adoc[Getting Statistics] |===