summaryrefslogtreecommitdiff
path: root/ceilometerclient/common
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix module importing issues for Python 3Kui Shi2013-10-141-10/+6
| | | | | | | | | Copy py3kcompat from oslo for urlparse Substitute StringIO / httplib with six Partial Implement: blueprint py33-support Change-Id: Ic8da2ca53b4217ef13f15be094437f1f4e643001
* Merge "Added support to --os-cacert"Jenkins2013-10-031-8/+8
|\
| * Added support to --os-cacertStefano Zilli2013-10-011-8/+8
| | | | | | | | | | | | Closes-Bug: #1224343 Change-Id: Ib0549d4496c47900c81cc970b99bcff25cad0040
* | Allow to update an alarm partiallyMehdi Abaakouk2013-10-011-0/+9
|/ | | | | | | | | | | | | The patch allow to only modify a part of an alarm instead of force to set the full alarm description. This permit to an application that have been written code around alarm with ceilometerclient 1.0.4 and ceilometer pre havana-3. To update alarm without any change with this and ceilometer >= havana-3 (ie: heat). Fixes bug #1231303 Change-Id: I20250131d05d20bfadbca450dfe6b8237f4b7183
* Help messages: specify which options are requiredCyril Roelandt2013-09-251-0/+7
| | | | | | Closes-Bug: #1223283 Change-Id: I080fa73bd45a1f9f442dbcdfa65fdc24e30521da
* Improve the CM shell client alarm visualisationMehdi Abaakouk2013-09-251-2/+4
| | | | | | | | | | | | | | | | | | | This change aim to get a better alarm representation in shell. In alarm-list: * it add a short sentence to describe the alarm rule * it remove project_id/user_id because it always show the same id for all alarm for end-user In alarm-show, it show alarm rule attributes as alarm properties instead of a unparsable json in the rule property. example of short sentence for column 'Alarm condition': * combinated states (AND) of 8babd6a2-c457-42d0-9eb5-cdfb3cb50203, d0e11a94-8f59-48a9-8f6d-b0d68aaac8d0 * cpu_util >= 50.0 during 1 x 60s Change-Id: If4df2dc08f9f4cb7796fd98308c7d62e311d1138
* Merge "Replace OpenStack LLC with OpenStack Foundation"Jenkins2013-09-233-3/+3
|\
| * Replace OpenStack LLC with OpenStack FoundationZhiQiang Fan2013-09-203-3/+3
| | | | | | | | | | Change-Id: Ia007da282714d8ee7337fd3b51f6dcc3b64d7ec3 Fixes-Bug: #1214176
* | Use the new alarm formatMehdi Abaakouk2013-09-201-0/+11
|/ | | | | | | | | | | The change sync the client API with the new alarm type and keep compatibility with the previous format of the alarm. It allows to create the new type of alarm: combination alarm. Implements blueprint alarming-logical-combination Change-Id: Ie62265023cadc20cf36a0d0b3775f4d984e324cf
* Updated from global requirementsMonty Taylor2013-08-081-2/+4
| | | | Change-Id: Ibf423f14a5c37aa298b2115bfd4936f660c6f530
* Ensure keystoneclient.auth_token is re-evaluatedEoghan Glynn2013-08-021-2/+3
| | | | | | | | | | Fixes bug 1207441 Force the re-evaluation of the keystoneclient.auth_token property so as to avoid missing out on the in-built refresh logic when expiry is imminent. Change-Id: I8319e9e9a71e33e089fbe2fbc812d2b6c15da927
* Allow to set matching_metadata with the cli1.0.2Mehdi Abaakouk2013-07-221-0/+13
| | | | | | | | | | | This change allows to set the matching_metadata of a alarm like this: ceilometer alarm-create --matching-metadata 'key=value' \ --matching-metadata 'key2=value2' --name 'alarm' ... Fixes bug #1201877 Change-Id: I22bf261b0a9580a06ae107ed45d082171f21fcc4
* Make authenticated client easier to consume.Eoghan Glynn2013-06-211-1/+2
| | | | | | Encapsulate keystone logic in an convenience method. Change-Id: I0a048e02f57d657b8b414a76d759ceb9e0e025df
* Drop unnecessary arg when instantiating HTTP classBrian Waldon2013-06-131-1/+1
| | | | | | Fixes bug 1190111 Change-Id: I45e5e5d5af97a4f75833d9ca000b1b555bdda752
* Add client support for creating new alarms.Eoghan Glynn2013-05-281-3/+8
| | | | Change-Id: I4e3be2e480803eeaf4ec11079e69e7e6afd5e0d1
* Add client support for updating alarms.Eoghan Glynn2013-05-281-1/+1
| | | | Change-Id: I2a368f536ec440387d32a8076a86d143b94d7c90
* Fix pep H306 (import order)Angus Salkeld2013-05-201-2/+0
| | | | | | | | Also remove some unused imports This is an effort to get the pep ignores to be closer to nova. Change-Id: I35612de45084fac0ae1c96dad84bb23cfade0e4f
* Fix pep H402 and H401 errorsAngus Salkeld2013-05-202-12/+8
| | | | | | This is an effort to get the pep ignores to be closer to nova. Change-Id: I451df579bbead00a8ff2c301c1a84e7c0a896002
* Fix for Bug #1167521, ceilometer client crashes with missing content type ↵Eric Pendergrass2013-05-011-1/+5
| | | | | | | | response pep8 compliance Change-Id: I7669c103fe3336aa82b289e04560192b44a186da
* Restore compatibility with PrettyTable < 0.7.2Dirk Mueller2013-04-291-2/+4
| | | | | | | | PrettyTable 0.7.2 changed the default to print also tables when the result set is empty. Revert to previous default. Change-Id: I22ab7522227ef70929d31dd2c4aaff93c4c518c2
* v2 API: added resource-show.Lianhao Lu2013-03-292-10/+24
| | | | | | | | Added resource-show command for v2 API. blueprint more-cli-cmd. Change-Id: I9e0dcff63b2ac6650094d47a947a2deaaea2ba4d
* Merge "Catch KeyError exception as early as possible when there is no ↵Jenkins2013-03-141-1/+4
|\ | | | | | | matching data on the server."
| * Catch KeyError exception as early as possible when there is no matching data ↵Dan Florea2013-03-081-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on the server. When the server does not have any data matching the requested response_key, it can still return successfully. A subsequent lookup in the returned data throws a KeyError exception. The simple fix for this is to catch the KeyError exception and return an empty list. An empty list, rather than None, is required because the calling code expects an iterable. The exception is caught as early as possible after the server returns from the GET request. The end result is that the CLI user sees an empty result when the requested data doesn't exist on the server. Prior to this fix the keyError exception was propagated all the way to the user, causing a confusing message to be printed. Also added associated unit test. Fixes bug #1111972 Change-Id: I88ba658f8be7e7edf255ef9f7d83ba87f36f4efc
* | Properly removing start and ending slashesyolanda.robla2013-03-081-2/+6
|/ | | | | | | Fixes: bug #1146690 Change-Id: I4258948f749128edeafb6ef3e64bda4ff35dbb58 Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
* Add support for v2 APIJulien Danjou2013-02-181-2/+5
| | | | | Change-Id: I861e53db5446d2e3dc49935ea1cdd1607cff0a2a Signed-off-by: Julien Danjou <julien@danjou.info>
* Pin pep8 to 1.3.3Chuck Short2013-01-071-2/+2
| | | | | | | | pep8 1.3.3 is pretty much standard across the openstack projects. Pin pep8 1.3.3 and fix associated warnings/errors. Change-Id: I7230857889d261320a0dab2c261c9f85dc0ee602 Signed-off-by: Chuck Short <chuck.short@canonical.com>
* Add basic functionalityAngus Salkeld2012-11-094-0/+529
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>