does not need to be hard coded here, but can be read from environment variables.
"""
-
+import logging
import dash_bootstrap_components as dbc
from dash import html
############################################################################
# General, application wide constants.
+ # Logging settings.
+ LOG_LEVEL = logging.INFO
+ LOG_FORMAT = "%(asctime)s: %(levelname)s: %(message)s"
+ LOG_DATE_FORMAT = "%Y/%m/%d %H:%M:%S"
+
# The application title.
TITLE = "FD.io CSIT"
DESCRIPTION = "Performance Dashboard"
# External stylesheets.
- EXTERNAL_STYLESHEETS = [dbc.themes.LUX, ]
+ EXTERNAL_STYLESHEETS = [ "/static/dist/css/bootstrap.css" ]
# Top level template for all pages.
TEMPLATE = "d-flex h-100 text-center text-white bg-dark"
# application.
NEWS_HTML_LAYOUT_FILE = "pal/templates/news_layout.jinja2"
- # The default job displayed when the page is loaded first time.
- NEWS_DEFAULT_JOB = "csit-vpp-perf-mrr-daily-master-2n-icx"
+ # Time period for regressions and progressions.
+ NEWS_TIME_PERIOD = TIME_PERIOD # [days]
- # Time period for regressions and progressions. Be CAREFULL with this
- # number. Setting it too high causes long processing time during the
- # application start-up.
- # If NEWS_TIME_PERIOD = 180, it takes approx. 35 minutes to calculate
- # annomalies for all tests.
- NEWS_TIME_PERIOD = 21 # [days]
+ # Time periods for summary tables.
+ NEWS_LAST = 1 # [days]
+ NEWS_SHORT = 7 # [days]
+ NEWS_LONG = NEWS_TIME_PERIOD # [days]
############################################################################
# Report.
# Layout of plot.ly graphs.
REPORT_GRAPH_LAYOUT_FILE = "pal/report/layout.yaml"
+ # Default name of downloaded file with selected data.
+ REPORT_DOWNLOAD_FILE_NAME = "iterative_data.csv"
+
############################################################################
# Statistics.
# The default job displayed when the page is loaded first time.
STATS_DEFAULT_JOB = "csit-vpp-perf-mrr-daily-master-2n-icx"
+ # Default name of downloaded file with selected data.
+ STATS_DOWNLOAD_FILE_NAME = "stats.csv"
+
############################################################################
# Trending.
# Layout of plot.ly graphs.
TREND_GRAPH_LAYOUT_FILE = "pal/trending/layout.yaml"
+
+ # Default name of downloaded file with selected data.
+ TREND_DOWNLOAD_FILE_NAME = "trending_data.csv"