Skip to content

Commit 1d3a419

Browse files
authored
Added the support for new stat apis (#3943)
1 parent 72ceb67 commit 1d3a419

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

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

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

6+
[.deprecated]#Deprecated#
7+
68
[abstract]
79
{description}
810

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+
914
== HTTP method and URI
1015

1116
Statistics can be retrieved at the bucket level.

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

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

2525
| `GET`
26-
| `/pools/default/buckets/[bucket-name]/stats`
27-
| xref:rest-api:rest-bucket-stats.adoc[Getting Bucket Statistics]
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]
2832

2933
| `GET`
3034
| `/pools/default/buckets/default`

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545

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

5050
|===

0 commit comments

Comments
 (0)