summaryrefslogtreecommitdiff
path: root/ceilometerclient/v2/resources.py
Commit message (Collapse)AuthorAgeFilesLines
* do not generate meter links on resource-list1.1.1gordon chung2015-09-151-2/+3
| | | | | | | | | | meter links are not accessible via resource_list and add significant overhead to query. we shouldn't generate these anymore. this patch is slightly different from master as this does not disable meter_links by default to maintain existing functionality. Change-Id: Ib20f410a70171aa09e4ebbbb748a5ce495fc6a43 Closes-Bug: #1493400
* Add methods to resource classesArtur Svechnikov2014-06-161-0/+5
| | | | | | | | | | | | | | Resource classes of managers should have methods like delete() and get(). Basicly base.Resource class has method get(), which uses id attribute, but classes Alarm, Event, etc. have no this attribute. Added intercept getting of id in the resource classes. Also added catch of HTTPNotFound for alarm get() because it affects correct functionality of scenario tests. Closes-Bug: #1312146 Change-Id: Ie598b73c64dece2185955467936dc6544a8a3dc7
* Remove © and remove unnecessary encoding linesMartin Geisler2014-05-301-2/+1
| | | | | | | | | | | | | | | | | The word "Copyright" alone is sufficient to claim copyright, the © need not be present.[1] As per PEP 263, a Python file with non-ASCII characters must have a line with "coding: <some-encoding>". Python files containing only 7-bit ASCII characters need no such line.[2] This commit removes unnecessary Unicode copyright symbols and unnecessary encoding lines. [1]: http://www.copyright.gov/circs/circ03.pdf [2]: http://legacy.python.org/dev/peps/pep-0263/ Change-Id: I6b43cc5ecfd0440e06b0aebd91ebb574b7f37a91
* v2 API: added resource-show.Lianhao Lu2013-03-291-0/+7
| | | | | | | | Added resource-show command for v2 API. blueprint more-cli-cmd. Change-Id: I9e0dcff63b2ac6650094d47a947a2deaaea2ba4d
* Add resources and meters to the v2 shellAngus Salkeld2013-02-271-0/+31
This also moves the build_url function to a common file. Change-Id: Ia94f9fa37c83fc756a395a918ad254111951f67b Signed-off-by: Angus Salkeld <asalkeld@redhat.com>