abbreviating --meter-name to -m in alarm commands

related commands of alarm:alarm-threshold-update,alarm-update,alarm-create
should support parameter --meter-name abbreviating to -m like other
commands of ceilometer.

Change-Id: I9fa9a7d14df3d93c3021f5004b444e72e1099c48
Closes-bug: #1268431
Replace inheritance hierarchy with composition

In the process of unification of the clients code we should use
composition to allow easier replacement with common HTTPClient.

bp common-client-library-2

Change-Id: I98d2bc89d5b1a36c30771923cd1cda7925e563d5
Remove dependencies on pep8, pyflakes and flake8

They should be determined by the hacking dependency
implicitely.

Change-Id: Iaa66d7baaa05350b6d6289976f807a5750b0ea8e
Add support for groupby in statistics for API v2

Adds the groupby parameter to list method of Statistics
and a new option "-g/--groupby" for the shell.

Change-Id: I41cfa076bf73f8c01d4ee71cd70008ea231556c8
Closes-Bug: #1270094
replace assertTrue(isinstance) to assertIsInstance

some of tests use different method of assertTrue(isinstance(A, B))
or assertEqual(type(A), B). The correct way is to use
assertIsInstance(A, B) provided by testtools

Change-Id: Idd931d27b13a46800e27393a98da096d41442320
Closes-bug: #1268480
Merge "Remove dependencies on pep8, pyflakes and flake8"
Remove print debugs statements.

Change-Id: I78a885ba98363ca309598294bc84604d05a55446
Raise traceback on error when using CLI and -debug

When --debug is specified to the CLI don't just print the simple error
message but actually reraise that error.

Change-Id: Iac624dbb3490d29e32a9ea251c14766186df31db
Using common method 'bool_from_string' from oslo strutils

Using common method 'bool_from_string' from oslo strutils to replace
utils.string_to_bool.

partially implements blueprint common-client-library-2

Change-Id: I101eb89174ac229aa1025bc4aea8b1c0c5594705
Enable hacking H233 rule

H233: Check that all occurrences look like print functions, not print
operator.

Change-Id: Ida43c6d68c605f7b6aba32a3aa4155811b888ef2
return sample info when creating sample with CLI

It will return nothing after creating a sample successfully with
ceilometer CLI. The information of the sample created should be return,
like other creating commands, such as "ceilometer alarm-create".

Change-Id: I60229fefa91de83e4b715cf4f92d3650e0a0d162
Closes-bug: #1267713
Merge "replace assertTrue(isinstance) to assertIsInstance"
Fix typos picked up by misspellings

Joe Gordon has introduced a module named misspellings which can check
typo automatically.

$ pip install misspellings
$ git ls-files | grep -v locale | misspellings -f -

Change-Id: I9eca2e097b03468651814fa563e4380fd573205e
ref: http://lists.openstack.org/pipermail/openstack-dev/2013-December/020975.html
Avoid discarding alarm-threshold-create --query option

Fixes bug 1271913

The query is crucial to the alarm evaluator statistics query
being well-formed, so must not be discarded.

Change-Id: I5ff8dcb420b932fc58dfef3dadfcbc4a4dc5cf66
Merge "Using common method 'bool_from_string' from oslo strutils"
Merge "abbreviating --meter-name to -m in alarm commands"
Merge "Replace inheritance hierarchy with composition"
Merge "Add support for groupby in statistics for API v2"
Using common methods from oslo cliutils

There are some common methods in cliutils we can use in ceilometerclient:
arg, env, unauthenticated, isunauthenticated.

+ Replaces utils.env to add alias env from cliutils.
+ Removes unused methods in utils: env
To use methods from clituils.

partially implements blueprint common-client-library-2

Change-Id: I295cc80635ed15c91e2832acb315e9deede09516
Merge "Enable hacking H233 rule"