Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the mapper for the bucket's stats #75

Open
wengshg opened this issue Aug 31, 2016 · 0 comments
Open

Get the mapper for the bucket's stats #75

wengshg opened this issue Aug 31, 2016 · 0 comments

Comments

@wengshg
Copy link

wengshg commented Aug 31, 2016

Instead of getting the basic stats, we need to get the details stats for each bucket, the corresponding restful api for the stats is:
http://${hostsname}:${port}/pools/${pool_name}/buckets/${bucket_name}/stats

@wengshg wengshg changed the title We need to get the mapper for the bucket's stats Get the mapper for the bucket's stats Aug 31, 2016
wengshg pushed a commit to wengshg/go-couchbase that referenced this issue Aug 31, 2016
Usage:

 client, err := couchbase.Connect("http://myserver:8091/")
 handleError(err)
 pool, err := client.GetPool("default")
 handleError(err)
 bucketStats, err := pool.BucketStats("MyAwesomeBucket")
 handleError(err)
 sampleStats := bStats.Op.Samples
 fmt.Println(sampleStats["bytes_written"][0])
 ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant