The ceilometer.api.hooks Module

class ceilometer.api.hooks.ConfigHook(conf)[source]

Bases: pecan.hooks.PecanHook

Attach the configuration object to the request.

That allows controllers to get it.

on_route(state)[source]
class ceilometer.api.hooks.DBHook(conf)[source]

Bases: pecan.hooks.PecanHook

before(state)[source]
static get_connection(conf)[source]
class ceilometer.api.hooks.NotifierHook(conf)[source]

Bases: pecan.hooks.PecanHook

Create and attach a notifier to the request.

Usually, samples will be push to notification bus by notifier when they are posted via /v2/meters/ API.

before(state)[source]
class ceilometer.api.hooks.TranslationHook[source]

Bases: pecan.hooks.PecanHook

after(state)[source]

Project Source

This Page