The aodh.api.hooks Module

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

Bases: pecan.hooks.PecanHook

Attach the configuration and policy enforcer object to the request.

That allows controllers to get it.

before(state)[source]
class aodh.api.hooks.DBHook(alarm_conn)[source]

Bases: pecan.hooks.PecanHook

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

Bases: pecan.hooks.PecanHook

after(state)[source]

Previous topic

The aodh.api.controllers.v2.utils Module

Next topic

The aodh.api.middleware Module

Project Source

This Page