Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/IISCRUM-1293 #2

Merged
merged 1 commit into from
Feb 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions src/panel-triggers/triggers_panel_ctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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: "",
Expand Down