gitlab-org--gitlab-foss/app/assets/javascripts/alert_management/constants.js

48 lines
1.1 KiB
JavaScript

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'),
};
export const ALERTS_STATUS_TABS = [
{
title: s__('AlertManagement|Open'),
status: 'OPEN',
filters: ['TRIGGERED', 'ACKNOWLEDGED'],
},
{
title: s__('AlertManagement|Triggered'),
status: 'TRIGGERED',
filters: 'TRIGGERED',
},
{
title: s__('AlertManagement|Acknowledged'),
status: 'ACKNOWLEDGED',
filters: 'ACKNOWLEDGED',
},
{
title: s__('AlertManagement|Resolved'),
status: 'RESOLVED',
filters: 'RESOLVED',
},
{
title: s__('AlertManagement|All alerts'),
status: 'ALL',
filters: ['TRIGGERED', 'ACKNOWLEDGED', 'RESOLVED'],
},
];
/* eslint-disable @gitlab/require-i18n-strings */
/**
* Tracks snowplow event when user views alerts list
*/
export const trackAlertListViewsOptions = {
category: 'Alert Management',
action: 'view_alerts_list',
};