)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"c9e80d197a7074b67edd6ea476b6ffcd032549d6","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Adds examples of CLI and API queries to the V2 documentation."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch includes additional reST-formatted text that will add new/expanded examples of v2 API use to the existing documentation."},{"line_number":10,"context_line":"Fixes: bug #1160929"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I63fa9dd8b050a63f005c4a5b35399355fdeb7605"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"AAAAOn%2F%2Fl4I%3D","line":9,"updated":"2013-05-02 16:12:56.000000000","message":"Line break here would be nice :)","commit_id":"6979b16e2c5ce84fb04cbb8ea34a55ea77a8abe7"}],"doc/source/webapi/v2.rst":[{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"2511a6e73b9d253878ad1cfad56ede3231395061","unresolved":false,"context_lines":[{"line_number":49,"context_line":"+++++++++++"},{"line_number":50,"context_line":"The basic Ceilometer CLI Command::"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"\tceilometer --debug --os-username \u003cusername_here\u003e --os-password \u003cpassword_here\u003e --os-auth-url http://localhost:5000/v2.0/ --os-tenant-name admin  meter-list"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"A sampling of CLI commands across the OpenStack services::"},{"line_number":55,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"AAAAOn%2F%2Fu38%3D","line":52,"updated":"2013-04-25 18:45:50.000000000","message":"(nit): I think it would be nice if you can remove this kind of tab and the following.","commit_id":"a4d1d68d01ad9d88d74131c2bca8c18eab938aef"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"3dc8a783800488ea222966cdd5032e62c45c8f42","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"A sampling of CLI commands across the OpenStack services:"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":".. note:: The *username*, *password*, and *tenant-name* options are required to be present in these commands or specified via environment variables. Note that the in-line commands will override the environment variables."},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"Examples::"},{"line_number":60,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"AAAAOn%2F%2FuhE%3D","line":57,"updated":"2013-04-25 22:20:42.000000000","message":"I think you mean the \"inline options\" will override the environment variables? I\u0027m not sure how much detail we need to go into exactly how auth works. That\u0027s covered pretty well in the other openstack guides.","commit_id":"90571c372ec1718e948197537afe595b4a583d49"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"0f78725d7be3c4bbdcc8f5531eae8e12d3a46b75","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"A sampling of CLI commands across the OpenStack services:"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":".. note:: The *username*, *password*, and *tenant-name* options are required to be present in these commands or specified via environment variables. Note that the in-line commands will override the environment variables."},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"Examples::"},{"line_number":60,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"AAAAOn%2F%2Ft2Q%3D","line":57,"in_reply_to":"AAAAOn%2F%2FuhE%3D","updated":"2013-04-26 14:30:23.000000000","message":"agree with Doug. i\u0027m inclined to suggest we remove the examples below since they don\u0027t appear to be ceilometer specific and if client calls change for other projects, no one will know to correct it here.","commit_id":"90571c372ec1718e948197537afe595b4a583d49"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"3dc8a783800488ea222966cdd5032e62c45c8f42","unresolved":false,"context_lines":[{"line_number":61,"context_line":"         $ ceilometer --os-username admin --os-password password --os-tenant-name admin project-list"},{"line_number":62,"context_line":"         $ nova net-list"},{"line_number":63,"context_line":"         $ glance --os-tenant-name service image-list"},{"line_number":64,"context_line":"         $ keystone endpoint-list "},{"line_number":65,"context_line":"         $ keystone --os-username admin service-list"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"AAAAOn%2F%2Fug8%3D","line":64,"updated":"2013-04-25 22:20:42.000000000","message":"Trailing whitespace.","commit_id":"90571c372ec1718e948197537afe595b4a583d49"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"0f78725d7be3c4bbdcc8f5531eae8e12d3a46b75","unresolved":false,"context_lines":[{"line_number":69,"context_line":"+++++++++++"},{"line_number":70,"context_line":"Here’s a sampling of Ceilometer API calls to try (Note that the default port for the Ceilometer API server is 8777):"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":".. note:: To successfully query the service you must first get a token from the Keystone service and add the response token to API call. See http://docs.openstack.org/api/quick-start/content/index.html#getting-credentials-a00665 for additional details."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"A simple query to return a list of available meters::"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"AAAAOn%2F%2Ft04%3D","line":72,"updated":"2013-04-26 14:30:23.000000000","message":"it should mention that the token should be attached to a project/tenant.\n\nalso, i\u0027m not sure how up to date that link is. is this better or worse: http://docs.openstack.org/developer/keystone/api_curl_examples.html","commit_id":"90571c372ec1718e948197537afe595b4a583d49"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"0f78725d7be3c4bbdcc8f5531eae8e12d3a46b75","unresolved":false,"context_lines":[{"line_number":89,"context_line":""},{"line_number":90,"context_line":"Additional examples::"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"     $ curl -X GET -H \u0027X-Auth-Token:\u003cinserttokenhere\u003e\u0027 \"http://localhost:8777/v2/meters/disk.root.size?q.field\u003dvcpus\u0026q.op\u003dlt\u0026q.value\u003d0\""},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"or::"},{"line_number":95,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"AAAAOn%2F%2Ft0A%3D","line":92,"updated":"2013-04-26 14:30:23.000000000","message":"(nit) is q.field\u003dvcpus a real query? if not, switch to a valid attribute in case anyone is copy/pasting.","commit_id":"90571c372ec1718e948197537afe595b4a583d49"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"0f78725d7be3c4bbdcc8f5531eae8e12d3a46b75","unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":"     $ curl -X GET -H \u0027X-Auth-Token:\u003cinserttokenhere\u003e\u0027 \"http://localhost:8777/v2/meters/instance?q.field\u003dmetadata.event_type\u0026q.value\u003dcompute.instance.exists\""},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"and finally a JSON-based example::"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"     $ curl -X GET -H \u0027X-Auth-Token:\u003cinserttokenhere\u003e\u0027 -H \u0027Content-Type:application/json\u0027 -d \u0027{\"q\":[{\"field\": \"timestamp\",\"op\": \"ge\",\"value\":\"2013-04-01T13:34:17\"}]}\u0027 http://localhost:8777/v2/meters"}],"source_content_type":"text/x-rst","patch_set":3,"id":"AAAAOn%2F%2Ftzs%3D","line":98,"updated":"2013-04-26 14:30:23.000000000","message":"(nit) comma after \u0027finally\u0027 ... or not, either way works. :)","commit_id":"90571c372ec1718e948197537afe595b4a583d49"},{"author":{"_account_id":4491,"name":"Lianhao Lu","email":"llh_misc@outlook.com","username":"lianhao-lu"},"change_message_id":"c4eaef2af3517c11a757951ad2f3741970468a80","unresolved":false,"context_lines":[{"line_number":50,"context_line":"+++++++++++"},{"line_number":51,"context_line":"The basic Ceilometer CLI Command::"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"     ceilometer --debug --os-username \u003cusername_here\u003e --os-password \u003cpassword_here\u003e --os-auth-url http://localhost:5000/v2.0/ --os-tenant-name admin  meter-list"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"A sampling of CLI commands across the OpenStack services:"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"AAAAOn%2F%2Fstg%3D","line":53,"updated":"2013-04-27 07:09:39.000000000","message":"Should we ask the user to use --debug always?","commit_id":"187bd8acfa7e6410426f450de0d7bf5420ddf073"},{"author":{"_account_id":4491,"name":"Lianhao Lu","email":"llh_misc@outlook.com","username":"lianhao-lu"},"change_message_id":"c4eaef2af3517c11a757951ad2f3741970468a80","unresolved":false,"context_lines":[{"line_number":61,"context_line":"         $ ceilometer --os-username admin --os-password password --os-tenant-name admin project-list"},{"line_number":62,"context_line":"         $ nova net-list"},{"line_number":63,"context_line":"         $ glance --os-tenant-name service image-list"},{"line_number":64,"context_line":"         $ keystone endpoint-list "},{"line_number":65,"context_line":"         $ keystone --os-username admin service-list"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"AAAAOn%2F%2FstY%3D","line":64,"updated":"2013-04-27 07:09:39.000000000","message":"trailing whitespace","commit_id":"187bd8acfa7e6410426f450de0d7bf5420ddf073"},{"author":{"_account_id":4491,"name":"Lianhao Lu","email":"llh_misc@outlook.com","username":"lianhao-lu"},"change_message_id":"c4eaef2af3517c11a757951ad2f3741970468a80","unresolved":false,"context_lines":[{"line_number":67,"context_line":""},{"line_number":68,"context_line":"API Queries"},{"line_number":69,"context_line":"+++++++++++"},{"line_number":70,"context_line":"Here’s a sampling of Ceilometer API calls to try (Note that the default port for the Ceilometer API server is 8777):"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":".. note:: To successfully query the service you must first get a token from the Keystone service and add the response token to API call. See http://docs.openstack.org/api/quick-start/content/index.html#getting-credentials-a00665 for additional details."},{"line_number":73,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"AAAAOn%2F%2FstQ%3D","line":70,"updated":"2013-04-27 07:09:39.000000000","message":"I\u0027m not a native speaker. But how about \"Here are some samples of how to use the Ceilometer API calls\"?","commit_id":"187bd8acfa7e6410426f450de0d7bf5420ddf073"},{"author":{"_account_id":4491,"name":"Lianhao Lu","email":"llh_misc@outlook.com","username":"lianhao-lu"},"change_message_id":"c4eaef2af3517c11a757951ad2f3741970468a80","unresolved":false,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"and finally a JSON-based example::"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"     $ curl -X GET -H \u0027X-Auth-Token:token_id\u0027 -H \u0027Content-Type:application/json\u0027 -d \u0027{\"q\":[{\"field\": \"timestamp\",\"op\": \"ge\",\"value\":\"2013-04-01T13:34:17\"}]}\u0027 http://localhost:8777/v2/meters"}],"source_content_type":"text/x-rst","patch_set":4,"id":"AAAAOn%2F%2FstM%3D","line":100,"updated":"2013-04-27 07:09:39.000000000","message":"Might be -H \u0027X-Auth-Token:\u003cinserttokenhere\u003e\u0027 for consistency?","commit_id":"187bd8acfa7e6410426f450de0d7bf5420ddf073"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"5a84105e3973ecb3ccfd0f481b4c8fc31306f4af","unresolved":false,"context_lines":[{"line_number":68,"context_line":""},{"line_number":69,"context_line":"A simple query to return a list of available meters::"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"     $ curl -X GET -H \u0027X-Auth-Token:\u003cinsert_token_here\u003e\u0027 \"http://localhost:8777/v2/meters\""},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"A query to return the list of resources::"},{"line_number":74,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"AAAAOn%2F%2FrAE%3D","line":71,"updated":"2013-04-29 18:31:56.000000000","message":"(nit): How about use \"X-Auth-Token:\u003cinserttokenhere\u003e\" to be consistent with below? Though I prefer use \u003cinsert_token_here\u003e since it\u0027s more clear.","commit_id":"b571a3b95d66b5ed7b57f0e6a842a963c792ab71"},{"author":{"_account_id":7409,"name":"Eric Pendergrass","email":"epende@gmail.com","username":"epende"},"change_message_id":"e61747fb2e553bd8e7fc581d399a4e6452ba71ad","unresolved":false,"context_lines":[{"line_number":57,"context_line":"     $ ceilometer --os-username admin --os-password password --os-tenant-name admin project-list"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":""},{"line_number":60,"context_line":".. note:: The *username*, *password*, and *tenant-name* options are required to be present in these commands or specified via environment variables. Note that the in-line commands will override the environment variables."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"API Queries"}],"source_content_type":"text/x-rst","patch_set":8,"id":"AAAAOn%2F%2Fp0A%3D","line":60,"updated":"2013-04-30 15:01:10.000000000","message":".. note:: The *username*, *password*, and *tenant-name* options must be present or contained in environment variables. Inline commands will override environment variables.","commit_id":"6979b16e2c5ce84fb04cbb8ea34a55ea77a8abe7"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"c9e80d197a7074b67edd6ea476b6ffcd032549d6","unresolved":false,"context_lines":[{"line_number":57,"context_line":"     $ ceilometer --os-username admin --os-password password --os-tenant-name admin project-list"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":""},{"line_number":60,"context_line":".. note:: The *username*, *password*, and *tenant-name* options are required to be present in these commands or specified via environment variables. Note that the in-line commands will override the environment variables."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"API Queries"}],"source_content_type":"text/x-rst","patch_set":8,"id":"AAAAOn%2F%2Fl38%3D","line":60,"in_reply_to":"AAAAOn%2F%2Fp0A%3D","updated":"2013-05-02 16:12:56.000000000","message":"One can also use tenant-id. But maybe that\u0027s a detail, just to say.","commit_id":"6979b16e2c5ce84fb04cbb8ea34a55ea77a8abe7"},{"author":{"_account_id":7409,"name":"Eric Pendergrass","email":"epende@gmail.com","username":"epende"},"change_message_id":"e61747fb2e553bd8e7fc581d399a4e6452ba71ad","unresolved":false,"context_lines":[{"line_number":64,"context_line":"+++++++++++"},{"line_number":65,"context_line":"Ceilometer API calls:"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":".. note:: To successfully query the Ceilometer you must first get a project-specific token from the Keystone service and add it to any API calls that you execute against that project. See the `Openstack credentials documentation \u003chttp://docs.openstack.org/api/quick-start/content/index.html#getting-credentials-a00665\u003e`_ for additional details."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"A simple query to return a list of available meters::"},{"line_number":70,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"AAAAOn%2F%2Fpz4%3D","line":67,"updated":"2013-04-30 15:01:10.000000000","message":".. note:: To successfully query Ceilometer you must get a project-specific token from the \nKeystone service and add it to any API calls you execute. See the `Opensta\nck credentials documentation \u003chttp://docs.openstack.org/api/quick-start/content/index.html#getting-c\nredentials-a00665\u003e`_ for additional details.","commit_id":"6979b16e2c5ce84fb04cbb8ea34a55ea77a8abe7"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"20a713a70eae330d4fa9542c54ca816663850aa8","unresolved":false,"context_lines":[{"line_number":64,"context_line":"+++++++++++"},{"line_number":65,"context_line":"Ceilometer API calls:"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":".. note:: To successfully query the Ceilometer you must first get a project-specific token from the Keystone service and add it to any API calls that you execute against that project. See the `Openstack credentials documentation \u003chttp://docs.openstack.org/api/quick-start/content/index.html#getting-credentials-a00665\u003e`_ for additional details."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"A simple query to return a list of available meters::"},{"line_number":70,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"AAAAOn%2F%2Fn3s%3D","line":67,"in_reply_to":"AAAAOn%2F%2Fpz4%3D","updated":"2013-05-01 15:33:08.000000000","message":"Admin users can query any project.","commit_id":"6979b16e2c5ce84fb04cbb8ea34a55ea77a8abe7"},{"author":{"_account_id":7409,"name":"Eric Pendergrass","email":"epende@gmail.com","username":"epende"},"change_message_id":"e61747fb2e553bd8e7fc581d399a4e6452ba71ad","unresolved":false,"context_lines":[{"line_number":74,"context_line":""},{"line_number":75,"context_line":"     $ curl -X GET -H \u0027X-Auth-Token:\u003cinserttokenhere\u003e\u0027 \"http://localhost:8777/v2/resources\""},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"A query to return the list of meters, limited to a specific meter type::"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"     $ curl -X GET -H \u0027X-Auth-Token:\u003cinserttokenhere\u003e\u0027 \"http://localhost:8777/v2/meters/disk.root.size\""},{"line_number":80,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"AAAAOn%2F%2Fpzo%3D","line":77,"updated":"2013-04-30 15:01:10.000000000","message":"A query returning the list of meters limited to a specific meter type::","commit_id":"6979b16e2c5ce84fb04cbb8ea34a55ea77a8abe7"},{"author":{"_account_id":7409,"name":"Eric Pendergrass","email":"epende@gmail.com","username":"epende"},"change_message_id":"e61747fb2e553bd8e7fc581d399a4e6452ba71ad","unresolved":false,"context_lines":[{"line_number":83,"context_line":"     $ curl -X GET -H \u0027X-Auth-Token:\u003cinserttokenhere\u003e\u0027 \"http://localhost:8777/v2/meters/instance?q.field\u003dmetadata.event_type\u0026q.value\u003dcompute.instance.delete.start\""},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"Additional examples::"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"     $ curl -X GET -H \u0027X-Auth-Token:\u003cinserttokenhere\u003e\u0027 \"http://localhost:8777/v2/meters/disk.root.size?q.field\u003dresource_id\u0026q.op\u003deq\u0026q.value\u003d\u003cresource_id_here\u003e\""},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"or::"}],"source_content_type":"text/x-rst","patch_set":8,"id":"AAAAOn%2F%2Fpzc%3D","line":86,"updated":"2013-04-30 15:01:10.000000000","message":"Consider explanation of examples below","commit_id":"6979b16e2c5ce84fb04cbb8ea34a55ea77a8abe7"}]}
