summaryrefslogtreecommitdiff
path: root/ceilometerclient
Commit message (Collapse)AuthorAgeFilesLines
* Allow to set matching_metadata with the cli1.0.2Mehdi Abaakouk2013-07-223-1/+37
| | | | | | | | | | | 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
* Add support for creating samplesAngus Salkeld2013-07-183-17/+93
| | | | Change-Id: Ib33a5fd162d760efa23a2fc496c1d11d79484491
* Add matching_metadata to the allowed attributesAngus Salkeld2013-07-052-1/+1
| | | | Change-Id: Icbd68061a43d18dd27baa7ff68f9381a160cd545
* Move tests to ceilometerclient.Monty Taylor2013-06-3018-0/+1475
| | | | | | | | tests.* implies an incorrect global package name. Additionally, consuming code can benefit from being able to choose to consume test code and fixtures. Change-Id: I7ba2b3ba1c2a99410b54fc40b48dfe2fc53eb79a
* Avoid unnecessary GET of existing alarm for update1.0.1Eoghan Glynn2013-06-241-5/+2
| | | | | | | | | | | The existing alarm representation is retrieved prior to update, which is uneccessary as the API merges the new and existing state in any case. This change saves the threshold eval logic one unnecessary API call per state transition. Change-Id: If21c53d6f43164315e1e70e62b0c70520fb5a45c
* Make authenticated client easier to consume.Eoghan Glynn2013-06-213-55/+82
| | | | | | Encapsulate keystone logic in an convenience method. Change-Id: I0a048e02f57d657b8b414a76d759ceb9e0e025df
* Add support for specifying statistics period.Eoghan Glynn2013-06-203-8/+19
| | | | | | | Allow the period to be be specified as an addition parameter when retrieving statistics. Change-Id: Ied3add404fb8b20c46a4de00f07273a6d6c4ffce
* Merge "Use Python 3.x compatible except construct"Jenkins2013-06-141-1/+1
|\
| * Use Python 3.x compatible except constructDirk Mueller2013-06-071-1/+1
| | | | | | | | | | | | | | Per (proposed) Hacking check, use except x as y: instead of x,y:, which works with any Python version >= 2.6 Change-Id: I6e52cedec5c694bccae10541b1964a8547d4ffd1
* | Drop unnecessary arg when instantiating HTTP classBrian Waldon2013-06-131-1/+1
| | | | | | | | | | | | Fixes bug 1190111 Change-Id: I45e5e5d5af97a4f75833d9ca000b1b555bdda752
* | Start using pyflakesDirk Mueller2013-06-093-4/+4
|/ | | | | | | | Enable Pyflakes tests. Fix those warnings that occur. Also explicitely list the pep8 warnings that currently fail. Change-Id: Icfd7bf23007a99187cfee66cbd630e0e885bf7d3
* Add client support for creating new alarms.Eoghan Glynn2013-05-283-3/+59
| | | | Change-Id: I4e3be2e480803eeaf4ec11079e69e7e6afd5e0d1
* Add client support for updating alarms.Eoghan Glynn2013-05-283-8/+81
| | | | Change-Id: I2a368f536ec440387d32a8076a86d143b94d7c90
* Enable more pep8 checksAngus Salkeld2013-05-231-1/+1
| | | | Change-Id: Ib8509391d4c4521e18f0e980003c5e94c7ba2f54
* Migrate to pbr.Monty Taylor2013-05-233-465/+4
| | | | | | Fixes bug 1179007. Change-Id: Ie921a710d9460196ed8023ad63f05dec998b60f0
* Merge "Fix pep H306 (import order)"Jenkins2013-05-223-4/+2
|\
| * Fix pep H306 (import order)Angus Salkeld2013-05-203-4/+2
| | | | | | | | | | | | | | | | Also remove some unused imports This is an effort to get the pep ignores to be closer to nova. Change-Id: I35612de45084fac0ae1c96dad84bb23cfade0e4f
* | Merge "Fix pep H402 and H401 errors"Jenkins2013-05-229-45/+36
|\ \ | |/
| * Fix pep H402 and H401 errorsAngus Salkeld2013-05-209-45/+36
| | | | | | | | | | | | This is an effort to get the pep ignores to be closer to nova. Change-Id: I451df579bbead00a8ff2c301c1a84e7c0a896002
* | Add support for deleting alarms.Eoghan Glynn2013-05-172-4/+21
|/ | | | Change-Id: Ifbf682bc05ce47d04be1940238cd52d0e895588f
* Merge "Add support for getting individual alarms."Jenkins2013-05-172-0/+26
|\
| * Add support for getting individual alarms.Eoghan Glynn2013-05-162-0/+26
| | | | | | | | | | | | Include the *_actions attributes in the CLI output. Change-Id: I19e2e7b9c60b56c0c84687694365ef3614dd0e44
* | Merge "Add support for listing alarms."Jenkins2013-05-173-1/+53
|\ \ | |/
| * Add support for listing alarms.Eoghan Glynn2013-05-163-1/+53
| | | | | | | | | | | | | | Just getting the ball rolling on client support for the new alarms API. Change-Id: I66380a7bfd650357dd4ec34cbe64807ac6921163
* | Fix mis-scoped Client class breaking CLIEoghan Glynn2013-05-151-1/+2
|/ | | | | | | | | | | | | | | | | Fixes bug 1180439 The change in importation in this commit: https://github.com/openstack/python-ceilometerclient/commit/453f4d2a caused the ceilometer CLI to fail in all cases with: 'module' object has no attribute 'Client' due to the mis-scoping of ceilometerclient.client.Client as ceilometerclient.Client. Change-Id: I5ec30bf74233f758519810629763ccb70bb7af87
* client does not show versionGordon Chung2013-05-075-48/+72
| | | | | | | | add support for --version update openstack.common to bring in latest openstack.common.version Change-Id: Ic1e66ea1f1aa65039b79902b893d1b2474ecb63e Fixes:bug1177573
* 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
* Change the default API version used by the cli to v2Angus Salkeld2013-04-101-2/+2
| | | | | | Since the v1 API is somewhat deprecated lets default to v2. Change-Id: Iece5428b2a47e63995e26f58347d4f7c8f8cb238
* v2 API: added resource-show.Lianhao Lu2013-03-294-10/+48
| | | | | | | | Added resource-show command for v2 API. blueprint more-cli-cmd. Change-Id: I9e0dcff63b2ac6650094d47a947a2deaaea2ba4d
* Make it possible to pass -q "metadata.field=value"1.0.0Angus Salkeld2013-03-271-4/+6
| | | | | | | Currently the regex doesn't account for the "." Change-Id: Ia01bb3e2a79e54fd01b0b6fa5437827694d4fb96 Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
* Merge "Corrected help strings."Jenkins2013-03-191-3/+3
|\
| * Corrected help strings.Lianhao Lu2013-03-141-3/+3
| | | | | | | | | | | | Corrected the wrongly mentioning of glance in help strings. Change-Id: Ic8613e8670f96be38d1a63777edc6c113a1894d4
* | Merge "Don't log unneccessarly on each http request"Jenkins2013-03-191-4/+0
|\ \ | |/ |/|
| * Don't log unneccessarly on each http requestAngus Salkeld2013-03-131-4/+0
| | | | | | | | | | | | | | | | | | | | Note: logging still works with -d, this just quiets it down for the normal case. bug 1154408 Signed-off-by: Angus Salkeld <asalkeld@redhat.com> Change-Id: I0adccc8b2c83d917d2742e86fdb4b6363b398ca6
* | 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>
* Merge "Add resources and meters to the v2 shell"Jenkins2013-03-047-28/+184
|\
| * Add resources and meters to the v2 shellAngus Salkeld2013-02-277-28/+184
| | | | | | | | | | | | | | This also moves the build_url function to a common file. Change-Id: Ia94f9fa37c83fc756a395a918ad254111951f67b Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
* | Merge "Support --os-auth-token."Jenkins2013-03-041-32/+38
|\ \
| * | Support --os-auth-token.Lianhao Lu2013-02-201-32/+38
| | | | | | | | | | | | | | | | | | Fixed bug #1130286. Change-Id: Ia0a8884f2738c31c3d91d6679622ebd3ec9b86b5
* | | Correct the help info of resource-list sub-command.Jason Zhang2013-02-261-1/+1
| |/ |/| | | | | | | | | Fixes: bug #1133823 Change-Id: I98691379c9c0adf78ef9ab761c2f2b203cd1ee6c
* | Merge "Add shell.py so we can do v2 shell commands"Jenkins2013-02-251-0/+66
|\ \
| * | Add shell.py so we can do v2 shell commandsAngus Salkeld2013-02-251-0/+66
| |/ | | | | | | | | | | | | | | | | ceilometer --ceilometer-api-version 2 sample-list -m <meter> fixes bug #1132633 Signed-off-by: Angus Salkeld <asalkeld@redhat.com> Change-Id: I177c2f759b9b07b44dcd6dd20f457cefd036d0b9
* | v1-api: Added timestamp support.Lianhao Lu2013-02-202-9/+44
| | | | | | | | | | | | Added timestamp support for resource/sample api. Fixed bug #1118542. Change-Id: I644c480ca00f57549dc66bd387721c25d3b353c4
* | v1-api: Adapted resouce/user api.Lianhao Lu2013-02-202-4/+20
|/ | | | | | | Added project-id support in resource api and source-id support in user api. Change-Id: I3295a36a4b3a57e9451cc042d542ead1354f8e61
* Add support for v2 APIJulien Danjou2013-02-185-2/+135
| | | | | Change-Id: I861e53db5446d2e3dc49935ea1cdd1607cff0a2a Signed-off-by: Julien Danjou <julien@danjou.info>
* Update to latest oslo-versionMonty Taylor2013-02-104-247/+149
| | | | | | Gets things set for tag-based versions. Change-Id: I8cc498562dde8831145583caf85de2ed46ccd206
* fix the fields in v1 do_meter_listAngus Salkeld2013-01-181-1/+1
| | | | Change-Id: I2ac7f9af13a38d1de0d61585f75e5955330284b7