Update VPP_STABLE_VER files
[csit.git] / resources / tools / dash / app / pal / utils / constants.py
index b95a8f5..8f39fc8 100644 (file)
@@ -17,7 +17,7 @@
 does not need to be hard coded here, but can be read from environment variables.
 """
 
 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
 import dash_bootstrap_components as dbc
 
 from dash import html
@@ -30,6 +30,11 @@ class Constants:
     ############################################################################
     # General, application wide constants.
 
     ############################################################################
     # 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"
 
     # The application title.
     TITLE = "FD.io CSIT"
 
@@ -37,7 +42,7 @@ class Constants:
     DESCRIPTION = "Performance Dashboard"
 
     # External stylesheets.
     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"
 
     # Top level template for all pages.
     TEMPLATE = "d-flex h-100 text-center text-white bg-dark"
@@ -250,12 +255,14 @@ class Constants:
     # application.
     NEWS_HTML_LAYOUT_FILE = "pal/templates/news_layout.jinja2"
 
     # 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.
     NEWS_TIME_PERIOD = TIME_PERIOD  # [days]
 
+    # Time periods for summary tables.
+    NEWS_LAST = 1  # [days]
+    NEWS_SHORT = 7  # [days]
+    NEWS_LONG = NEWS_TIME_PERIOD  # [days]
+
     ############################################################################
     # Report.
 
     ############################################################################
     # Report.