Skip to content

Commit 72ceb67

Browse files
authored
Revert "DOC-11708 Deprecated REST API endpoint for bucket stats (#3859)" (#3918)
This reverts commit b8fc634.
1 parent b8fc634 commit 72ceb67

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

modules/rest-api/pages/rest-bucket-stats.adoc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
= Getting Bucket Statistics
2-
:description: pass:q[See the IMPORTANT note.]
2+
:description: pass:q[To retrieve bucket statistics, use the `GET` operation with the `/pools/default/buckets/bucket_name/stats` URI.]
33
:page-topic-type: reference
44
:page-aliases: rest-api:rest-node-retrieve-stats
55

6-
[.deprecated]#Deprecated#
7-
86
[abstract]
97
{description}
108

11-
IMPORTANT: As of Couchbase Server 8.0, the REST API endpoint `GET /pools/default/buckets/<bucket-name>/stats` is deprecated.
12-
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.
13-
149
== HTTP method and URI
1510

1611
Statistics can be retrieved at the bucket level.

modules/rest-api/partials/rest-buckets-table.adoc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,8 @@
2323
| xref:rest-api:rest-retrieve-bucket-nodes.adoc[Listing Nodes by Bucket]
2424

2525
| `GET`
26-
| `/pools/default/stats/range/[metric_name]/[function-expression]`
27-
| xref:rest-api:rest-statistics-single.adoc[Getting a Single Statistic]
28-
29-
| `POST`
30-
| `/pools/default/stats/range`
31-
| xref:rest-api:rest-statistics-multiple.adoc[Getting Multiple Statistics]
26+
| `/pools/default/buckets/[bucket-name]/stats`
27+
| xref:rest-api:rest-bucket-stats.adoc[Getting Bucket Statistics]
3228

3329
| `GET`
3430
| `/pools/default/buckets/default`

modules/rest-api/partials/rest-xdcr-table.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@
4242
| `/settings/replications/<settings_URI>`
4343
| xref:rest-api:rest-xdcr-adv-settings.adoc[Managing Advanced Settings]
4444

45+
4546
| `GET`
46-
| `/pools/default/stats/range/[statistics_name]`
47-
| xref:rest-api:rest-statistics-single.adoc[Getting a Single Statistic]
47+
| `/pools/default/buckets/[source_bucket]/stats/[destination_endpoint]`
48+
| xref:rest-api:rest-xdcr-statistics.adoc[Getting Statistics]
4849

4950
|===

0 commit comments

Comments
 (0)