hawat.blueprints.performance package

Description

This pluggable module provides access to system performance statistics.

hawat.blueprints.performance.BLUEPRINT_NAME = 'performance'

Name of the blueprint as module global constant.

class hawat.blueprints.performance.DataView[source]

Bases: hawat.base.FileNameView

View reponsible for accessing raw performance data in RRD databases.

authentication = True
authorization = [<Permission needs={Need(method='role', value='developer'), Need(method='role', value='maintainer'), Need(method='role', value='user'), Need(method='role', value='admin')} excludes=set()>]
classmethod get_directory_path()[source]

Interface implementation of hawat.base.FileNameView.get_directory_path().

classmethod get_view_name()[source]

Implementation of hawat.base.BaseView.get_view_name().

classmethod get_view_title(**kwargs)[source]

Implementation of hawat.base.BaseView.get_menu_title().

class hawat.blueprints.performance.PerformanceBlueprint(name, import_name, **kwargs)[source]

Bases: hawat.base.HawatBlueprint

Hawat pluggable module - system processing performance.

classmethod get_module_title()[source]

Implementation of hawat.base.HawatBlueprint.get_module_title().

register_app(app)[source]

Callback method. Will be called from hawat.base.HawatApp.register_blueprint() method and can be used to customize the Flask application object. Possible use cases:

  • application menu customization

Parameters

app (hawat.base.HawatApp) – Flask application to be customize.

class hawat.blueprints.performance.RRDDBView[source]

Bases: hawat.base.FileNameView

View reponsible for accessing performance RRD databases.

authentication = True
authorization = [<Permission needs={Need(method='role', value='developer'), Need(method='role', value='maintainer'), Need(method='role', value='user'), Need(method='role', value='admin')} excludes=set()>]
classmethod get_directory_path()[source]

Interface implementation of hawat.base.FileNameView.get_directory_path().

classmethod get_view_name()[source]

Implementation of hawat.base.BaseView.get_view_name().

classmethod get_view_title(**kwargs)[source]

Implementation of hawat.base.BaseView.get_menu_title().

class hawat.blueprints.performance.ViewView[source]

Bases: hawat.base.HTMLMixin, hawat.base.SimpleView

View reponsible for presenting system performance in using RRD charts.

authentication = True
authorization = [<Permission needs={Need(method='role', value='developer'), Need(method='role', value='maintainer'), Need(method='role', value='user'), Need(method='role', value='admin')} excludes=set()>]
do_before_response(**kwargs)[source]

Implementation of hawat.base.RenderableView.do_before_response().

classmethod get_menu_title(**kwargs)[source]

Implementation of hawat.base.BaseView.get_menu_title().

classmethod get_view_icon()[source]

Implementation of hawat.base.BaseView.get_view_icon().

classmethod get_view_name()[source]

Implementation of hawat.base.BaseView.get_view_name().

classmethod get_view_title(**kwargs)[source]

Implementation of hawat.base.BaseView.get_view_title().

hawat.blueprints.performance.get_blueprint()[source]

Mandatory interface and factory function. This function must return a valid instance of hawat.base.HawatBlueprint or flask.Blueprint.