All files / app/assets/javascripts/vue_shared/alert_details constants.js

100% Statements 3/3
100% Branches 0/0
100% Functions 0/0
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35    10x                 10x   10x                                          
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'),
};
 
const category = 'Alert Management'; // eslint-disable-line @gitlab/require-i18n-strings
 
export const PAGE_CONFIG = {
  OPERATIONS: {
    TITLE: 'OPERATIONS',
    STATUSES: {
      TRIGGERED: s__('AlertManagement|Triggered'),
      ACKNOWLEDGED: s__('AlertManagement|Acknowledged'),
      RESOLVED: s__('AlertManagement|Resolved'),
    },
    // Tracks snowplow event when user views alert details
    TRACK_ALERTS_DETAILS_VIEWS_OPTIONS: {
      category,
      action: 'view_alert_details',
    },
    // Tracks snowplow event when alert status is updated
    TRACK_ALERT_STATUS_UPDATE_OPTIONS: {
      category,
      action: 'update_alert_status',
      label: 'Status', // eslint-disable-line @gitlab/require-i18n-strings
    },
  },
};