diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-06-05 11:01:23 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-06-05 11:01:23 +0000 |
commit | 662a4642046ff86fefb56e89bfe269ff6b8bf100 (patch) | |
tree | bd11291557040d5692528aca09700a21626b97b3 | |
parent | 02bf42d07213fe69e151c33c68744767a75b0c8a (diff) | |
parent | adf460a4f94c87a754ab0df557f8784f8f584ff9 (diff) | |
download | python-ceilometerclient-662a4642046ff86fefb56e89bfe269ff6b8bf100.tar.gz |
Merge "Updates examples to reference new sample format"
-rw-r--r-- | doc/source/api.rst | 6 |
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 |