The monasca_events_api.app.api Module

Module contains factories to initializes various applications of monasca-events-api.

monasca_events_api.app.api.create_api_app(app_name)[source]

Decorator trapping any error during application boot time.

Parameters

app_name (str) – Application name

Returns

_wrapper function

monasca_events_api.app.api.create_healthcheck_app(app_name)[source]

Decorator trapping any error during application boot time.

Parameters

app_name (str) – Application name

Returns

_wrapper function

monasca_events_api.app.api.create_version_app(app_name)[source]

Decorator trapping any error during application boot time.

Parameters

app_name (str) – Application name

Returns

_wrapper function

monasca_events_api.app.api.error_trap(app_name)[source]

Decorator trapping any error during application boot time.

Parameters

app_name (str) – Application name

Returns

_wrapper function

monasca_events_api.app.api.singleton_config(func)[source]

Decorator ensuring that configuration is loaded only once.

Parameters

func – Function to execute

Returns

_wrapper