1) Set the default value of the long-running threshold to 2 minutes for warning and 5 minutes for the alert.

2) Use $color-danger for the alert threshold.
This commit is contained in:
Akshay Joshi 2021-07-06 19:52:37 +05:30
parent 39a845ad31
commit a0b2a28ee2
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ class DashboardModule(PgAdminModule):
self.long_running_query_threshold = self.dashboard_preference.register(
'display', 'long_running_query_threshold',
gettext('Long running query thresholds'), 'threshold',
None, category_label=PREF_LABEL_DISPLAY,
'2|5', category_label=PREF_LABEL_DISPLAY,
help_str=gettext('Set the warning and alert threshold value to '
'highlight the long-running queries on the '
'dashboard.')

View File

@ -345,7 +345,7 @@ table.backgrid {
}
tr.alert {
background-color: $color-danger-light !important;
background-color: $color-danger !important;
}
}