debian-mirror-gitlab/app/assets/javascripts/alert_management/constants.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.1 KiB
JavaScript
Raw Normal View History

2020-05-24 23:13:21 +05:30
import { s__ } from '~/locale';
2021-03-11 19:13:27 +05:30
export const SEVERITY_LEVELS = {
CRITICAL: s__('severity|Critical'),
HIGH: s__('severity|High'),
MEDIUM: s__('severity|Medium'),
LOW: s__('severity|Low'),
INFO: s__('severity|Info'),
UNKNOWN: s__('severity|Unknown'),
2020-05-24 23:13:21 +05:30
};
export const ALERTS_STATUS_TABS = [
{
title: s__('AlertManagement|Open'),
2020-06-23 00:09:42 +05:30
status: 'OPEN',
filters: ['TRIGGERED', 'ACKNOWLEDGED'],
2020-05-24 23:13:21 +05:30
},
{
title: s__('AlertManagement|Triggered'),
2020-06-23 00:09:42 +05:30
status: 'TRIGGERED',
filters: 'TRIGGERED',
2020-05-24 23:13:21 +05:30
},
{
title: s__('AlertManagement|Acknowledged'),
2020-06-23 00:09:42 +05:30
status: 'ACKNOWLEDGED',
filters: 'ACKNOWLEDGED',
2020-05-24 23:13:21 +05:30
},
{
title: s__('AlertManagement|Resolved'),
2020-06-23 00:09:42 +05:30
status: 'RESOLVED',
filters: 'RESOLVED',
2020-05-24 23:13:21 +05:30
},
{
title: s__('AlertManagement|All alerts'),
2020-06-23 00:09:42 +05:30
status: 'ALL',
filters: ['TRIGGERED', 'ACKNOWLEDGED', 'RESOLVED'],
2020-05-24 23:13:21 +05:30
},
];
2020-06-23 00:09:42 +05:30
/* eslint-disable @gitlab/require-i18n-strings */
/**
* Tracks snowplow event when user views alerts list
*/
export const trackAlertListViewsOptions = {
category: 'Alert Management',
action: 'view_alerts_list',
};