[openstack-dev] [Ceilometer]

Ilya Tyaptin ityaptin at mirantis.com
Tue Apr 8 08:33:03 UTC 2014


Hi!

In this method "q" is query argument and used for filtering response.

In code you may set this parameter with list of dicts, like this:

q=[{"field": "resource_id", "value": "a", "op": "eq"}]

More examples of queries at
http://docs.openstack.org/developer/ceilometer/webapi/v2.html?highlight=query#api-and-cli-query-examples


On Tue, Apr 8, 2014 at 1:13 AM, Hachem Chraiti <hachemfst at gmail.com> wrote:

> hi erveryone,thats a python code:
>
> from ceilometerclient.v2 import client
>
> ceilometer =client.Client(endpoint='http://controller:8777/v2/resources',
> token='e8e70342225d64d1d20a')
>
> print  ceilometer.resources.list(q)
>
>
> whats this "q" parameter??????
>
> Sincerly ,
> Chraiti Hachem,software engineer
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>


-- 

Best regards,

Tyaptin Ilia,

Intern Software Engineer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140408/fa3bb915/attachment.html>


More information about the OpenStack-dev mailing list