Add a wadl target to the documentation

Thanks to sphinxcontrib-docbookrestapi, the documentation for the REST API can
be automatically generated. Add a target to do this.

Change-Id: I9dda41bc00160bf1be1e275d9ac94a3a53571688
Correct env variable in file oslo.config.generator.rc

Use CEILOMETER_CONFIG_GENERATOR_EXTRA_MODULES as the environment
variable to include keystoneclient middleware's option in the config
generator's output.

Change-Id: Ibddeb587b22a0569dcb8db58d7cd8626b4482cb6
Closes-Bug: 1262331
Don't assume alarms are returned in insert order

The previous implentation of the tests assure than the db backends
return the alarms into the insert order. This is false for mysql.

The patch rewritte the tests to make it compatible to mysql

Change-Id: I146de0d8cef78b6c734bc6742238b939422645b9
storage: factorize not implemented methods

There's a lot of driver that are not implementing everything, and as
time goes by, this is getting and going to be more and more common. Not
all drivers are suited to do everything, so implementing every methods
as abstract makes a lot of NotImplementedError raising redundant.

This patch makes stop using that and remove a lot of useless copy pasted
code.

Change-Id: I9e48c4f0484033061a3c3461d761e4cea4b8e75e
Merge "Don't assume alarms are returned in insert order"
Merge "storage: factorize not implemented methods"
Ensure we are not exhausting the sqlalchemy pool

Because of eventlet, notification messages can be consumed more quickly
that than they are wroted to the database, this have to effect to exhaust
the sqlalchemy connection pool and raise:

TimeoutError: QueuePool limit of size 5 overflow 10 reached, connection
timed out, timeout 30

The patch creates a eventlet pool to ensure that the pool never exhausts
and prints a warning message in the log to inform that perhaps the pool
size need to be increased.

Fixes bug #1243251

Change-Id: I5ccdc141c441db32fab361783a31a96015516878
Add Event API

This commit adds v2/event_types, v2/events and
v2/events/*/traits. Currently, the event api is
limited to admin users, but is configurable in
the policy.json file. All users that are able to
access the event api can view all events in the
system, it is not restricted per project id.
Operators other than 'eq' have not yet been
implemented.

This change re-names the parameters in the
event_filter to class so they are more
end-user friendly.

implements bp specify-event-api

Change-Id: I0ccd4ef81cac5f8f57a450dc980ea85ff8fe89ec
Merge "Add Event API"
Merge "Ensure we are not exhausting the sqlalchemy pool"
Remove redundant code in nova_client.Client

'a and a or b' is equal to 'a or b', the redundant code can be
removed.

This patch also fixes the docstring of __init__, which actually
initializes a nova client object, not returns.

Change-Id: I0815928a2b597452048a1cc6c2170259a53ccaf9
Closes-Bug: #1264099
Add missing gettextutils import to ceilometer.storage.base

Change-Id: I1cea5f9032ffceac72cd441da81f197e7f66448d
Closes-Bug: #1265492
Change endpoint_type parameter

Replace endpoint_type parameter by os_endpoint_type parameter
expected by ceilometerclient.

Change-Id: I676247b289f8efa7c047a34dc9333361d094b024
Closes-Bug: #1257232
Merge "Change endpoint_type parameter"
Merge "Add a wadl target to the documentation"
Merge "Remove redundant code in nova_client.Client"
updated schema to remove foreign keys from trait/event and swapped around indexes with migr 025...

Change-Id: I01d528edc260aa0401d00877ea4c4a2afee6eef3
whoops, forgot the migration

Change-Id: I615a2bade75ce2d29a95abf6372a4692b69e800f