summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-06-05 11:01:23 +0000
committerGerrit Code Review <review@openstack.org>2015-06-05 11:01:23 +0000
commit662a4642046ff86fefb56e89bfe269ff6b8bf100 (patch)
treebd11291557040d5692528aca09700a21626b97b3
parent02bf42d07213fe69e151c33c68744767a75b0c8a (diff)
parentadf460a4f94c87a754ab0df557f8784f8f584ff9 (diff)
downloadpython-ceilometerclient-662a4642046ff86fefb56e89bfe269ff6b8bf100.tar.gz
Merge "Updates examples to reference new sample format"
-rw-r--r--doc/source/api.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/source/api.rst b/doc/source/api.rst
index cad39b0..36c7c51 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -21,7 +21,7 @@ Then call methods on its managers::
>>> cclient.meters.list()
[<Meter ...>, ...]
- >>> cclient.samples.list()
+ >>> cclient.new_samples.list()
[<Sample ...>, ...]
V2 client tips
@@ -29,8 +29,8 @@ V2 client tips
Use queries to narrow your search (more info at `Ceilometer V2 API reference`__)::
- >>> query = [dict(field='resource_id', op='eq', value='5a301761-f78b-46e2-8900-8b4f6fe6675a')]
- >>> ceilometer.samples.list(meter_name='cpu_util', limit=10, q=query)
+ >>> query = [dict(field='resource_id', op='eq', value='5a301761-f78b-46e2-8900-8b4f6fe6675a'), dict(field='meter',op='eq',value='cpu_util')]
+ >>> cclient.new_samples.list(q=query, limit=10)
[<Sample ...>, ...]
__ http://docs.openstack.org/developer/ceilometer/webapi/v2.html#Query