diff --git a/modules/rest-api/pages/rest-bucket-stats.adoc b/modules/rest-api/pages/rest-bucket-stats.adoc index b2b8afe8e8..a389ba0056 100644 --- a/modules/rest-api/pages/rest-bucket-stats.adoc +++ b/modules/rest-api/pages/rest-bucket-stats.adoc @@ -1,11 +1,16 @@ = Getting Bucket Statistics -:description: pass:q[To retrieve bucket statistics, use the `GET` operation with the `/pools/default/buckets/bucket_name/stats` URI.] +:description: pass:q[See the IMPORTANT note.] :page-topic-type: reference :page-aliases: rest-api:rest-node-retrieve-stats +[.deprecated]#Deprecated# + [abstract] {description} +IMPORTANT: As of Couchbase Server 8.0, this endpoint is deprecated. +For retrieving bucket statistics, use xref:rest-api:rest-statistics-single.adoc[Getting a Single Statistic] 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 87b5554d42..94e8987762 100644 --- a/modules/rest-api/partials/rest-buckets-table.adoc +++ b/modules/rest-api/partials/rest-buckets-table.adoc @@ -23,8 +23,12 @@ | xref:rest-api:rest-retrieve-bucket-nodes.adoc[Listing Nodes by Bucket] | `GET` -| `/pools/default/buckets/[bucket-name]/stats` -| xref:rest-api:rest-bucket-stats.adoc[Getting Bucket Statistics] +| `/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] | `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 de6a8c9753..8247f7a767 100644 --- a/modules/rest-api/partials/rest-xdcr-table.adoc +++ b/modules/rest-api/partials/rest-xdcr-table.adoc @@ -44,7 +44,8 @@ | `GET` -| `/pools/default/buckets/[source_bucket]/stats/[destination_endpoint]` +| `/pools/defaults/stats/range/[source_bucket]/stats/[destination_endpoint]` +| `/pools/default/stats/range/[metric_name]?sourceBucketName=[source_bucket_name]` | xref:rest-api:rest-xdcr-statistics.adoc[Getting Statistics] |===