monasca-ui/enabled/_50_admin_add_monitoring_panel.py
cindy oneill 13824be8e1 using python-monascaclient instead of old python-monclient
Change-Id: Ica2ca038cde5020cf64e84bce049b13b0a042633
2014-07-25 11:33:50 -06:00

31 lines
1.0 KiB
Python

# The name of the panel to be added to HORIZON_CONFIG. Required.
PANEL = 'monitoring'
# The name of the dashboard the PANEL associated with. Required.
PANEL_DASHBOARD = 'overcloud'
# The name of the panel group the PANEL is associated with.
PANEL_GROUP = 'monitoring'
DEFAULT_PANEL = 'alarms'
# Python panel class of the PANEL to be added.
ADD_PANEL = \
'monitoring.alarms.panel.Monitoring'
# A list of applications to be added to INSTALLED_APPS.
ADD_INSTALLED_APPS = ['monitoring', 'grafana']
# A list of angular modules to be added as dependencies to horizon app.
ADD_ANGULAR_MODULES = ['monitoringApp']
# A list of javascript files to be included for all pages
ADD_JS_FILES = ['monitoring/js/app.js',
'monitoring/js/controllers.js',
'monitoring/js/ng-tags-input.js']
from monascaclient import exc
# A dictionary of exception classes to be added to HORIZON['exceptions'].
ADD_EXCEPTIONS = {
'recoverable': (exc.HTTPUnProcessable,),
'not_found': (exc.HTTPNotFound,),
'unauthorized': (exc.HTTPUnauthorized,),
}