2021-03-11 19:13:27 +05:30
|
|
|
import { s__ } from '~/locale';
|
|
|
|
|
|
|
|
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'),
|
|
|
|
};
|
|
|
|
|
2023-06-20 00:43:36 +05:30
|
|
|
const category = 'Alert Management'; // eslint-disable-line @gitlab/require-i18n-strings
|
|
|
|
|
2021-03-11 19:13:27 +05:30
|
|
|
export const PAGE_CONFIG = {
|
|
|
|
OPERATIONS: {
|
|
|
|
TITLE: 'OPERATIONS',
|
2021-04-29 21:17:54 +05:30
|
|
|
STATUSES: {
|
|
|
|
TRIGGERED: s__('AlertManagement|Triggered'),
|
|
|
|
ACKNOWLEDGED: s__('AlertManagement|Acknowledged'),
|
|
|
|
RESOLVED: s__('AlertManagement|Resolved'),
|
|
|
|
},
|
2021-03-11 19:13:27 +05:30
|
|
|
// Tracks snowplow event when user views alert details
|
|
|
|
TRACK_ALERTS_DETAILS_VIEWS_OPTIONS: {
|
2023-06-20 00:43:36 +05:30
|
|
|
category,
|
2021-03-11 19:13:27 +05:30
|
|
|
action: 'view_alert_details',
|
|
|
|
},
|
|
|
|
// Tracks snowplow event when alert status is updated
|
|
|
|
TRACK_ALERT_STATUS_UPDATE_OPTIONS: {
|
2023-06-20 00:43:36 +05:30
|
|
|
category,
|
2021-03-11 19:13:27 +05:30
|
|
|
action: 'update_alert_status',
|
2023-06-20 00:43:36 +05:30
|
|
|
label: 'Status', // eslint-disable-line @gitlab/require-i18n-strings
|
2021-03-11 19:13:27 +05:30
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|