From bf924358a1d1a459c384313914953b8897558846 Mon Sep 17 00:00:00 2001 From: Timo Myllymaki Date: Tue, 4 Feb 2020 10:47:45 +0200 Subject: [PATCH] IISCRUM-1293 Change panel default settings --- src/panel-triggers/triggers_panel_ctrl.js | 34 +++++++++++------------ 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/panel-triggers/triggers_panel_ctrl.js b/src/panel-triggers/triggers_panel_ctrl.js index e5fabc0e5..6ecf889e3 100644 --- a/src/panel-triggers/triggers_panel_ctrl.js +++ b/src/panel-triggers/triggers_panel_ctrl.js @@ -26,12 +26,12 @@ export const DEFAULT_TARGET = { export const getDefaultTarget = () => DEFAULT_TARGET; export const DEFAULT_SEVERITY = [ - { priority: 0, severity: 'Not classified', color: 'rgb(108, 108, 108)', show: true}, - { priority: 1, severity: 'Information', color: 'rgb(120, 158, 183)', show: true}, - { priority: 2, severity: 'Warning', color: 'rgb(175, 180, 36)', show: true}, - { priority: 3, severity: 'Average', color: 'rgb(255, 137, 30)', show: true}, - { priority: 4, severity: 'High', color: 'rgb(255, 101, 72)', show: true}, - { priority: 5, severity: 'Disaster', color: 'rgb(215, 0, 0)', show: true}, + { priority: 0, severity: 'Not classified', color: 'rgb(108, 108, 108)', show: false}, + { priority: 1, severity: 'Informatiivinen', color: 'rgb(120, 158, 183)', show: true}, + { priority: 2, severity: 'Matala', color: 'rgb(175, 180, 36)', show: true}, + { priority: 3, severity: 'Keskitaso', color: 'rgb(255, 137, 30)', show: true}, + { priority: 4, severity: 'Vakava', color: 'rgb(255, 101, 72)', show: true}, + { priority: 5, severity: 'Kriittinen', color: 'rgb(215, 0, 0)', show: true}, ]; export const getDefaultSeverity = () => DEFAULT_SEVERITY; @@ -43,30 +43,30 @@ export const PANEL_DEFAULTS = { datasources: [], targets: {}, // Fields - hostField: true, + hostField: false, hostTechNameField: false, hostGroups: false, hostProxy: false, - showTags: true, - statusField: true, + showTags: false, + statusField: false, statusIcon: false, severityField: true, - ageField: false, + ageField: true, descriptionField: true, - descriptionAtNewLine: false, + descriptionAtNewLine: true, // Options hostsInMaintenance: true, showTriggers: 'all triggers', - sortTriggersBy: { text: 'last change', value: 'lastchange' }, + sortTriggersBy: { text: 'severity', value: 'priority' }, showEvents: { text: 'Problems', value: 1 }, - limit: 100, + limit: 10, // View options - layout: 'table', + layout: 'list', fontSize: '100%', - pageSize: 10, + pageSize: 5, problemTimeline: true, - highlightBackground: false, - highlightNewEvents: false, + highlightBackground: true, + highlightNewEvents: true, highlightNewerThan: '1h', customLastChangeFormat: false, lastChangeFormat: "",