summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/alerts_settings/constants.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/alerts_settings/constants.js')
-rw-r--r--app/assets/javascripts/alerts_settings/constants.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/app/assets/javascripts/alerts_settings/constants.js b/app/assets/javascripts/alerts_settings/constants.js
index 4a180ed2bc0..b93119d6e6a 100644
--- a/app/assets/javascripts/alerts_settings/constants.js
+++ b/app/assets/javascripts/alerts_settings/constants.js
@@ -93,6 +93,10 @@ export const i18n = {
integrationRemoved: s__('AlertsIntegrations|The integration is deleted.'),
alertSent: s__('AlertsIntegrations|The test alert should now be visible in your alerts list.'),
addNewIntegration: s__('AlertSettings|Add new integration'),
+ settingsTabs: {
+ currentIntegrations: s__('AlertSettings|Current integrations'),
+ integrationSettings: s__('AlertSettings|Alert settings'),
+ },
};
export const integrationSteps = {
@@ -156,3 +160,31 @@ export const tabIndices = {
};
export const testAlertModalId = 'confirmSendTestAlert';
+
+/* Alerts integration settings constants */
+
+export const I18N_ALERT_SETTINGS_FORM = {
+ saveBtnLabel: __('Save changes'),
+ introText: __('Action to take when receiving an alert. %{docsLink}'),
+ introLinkText: __('Learn more.'),
+ createIncident: {
+ label: __('Create an incident. Incidents are created for each alert triggered.'),
+ },
+ incidentTemplate: {
+ label: __('Incident template (optional).'),
+ },
+ sendEmail: {
+ label: __('Send a single email notification to Owners and Maintainers for new alerts.'),
+ },
+ autoCloseIncidents: {
+ label: __(
+ 'Automatically close associated incident when a recovery alert notification resolves an alert',
+ ),
+ },
+};
+
+export const NO_ISSUE_TEMPLATE_SELECTED = { key: '', name: __('No template selected') };
+export const TAKING_INCIDENT_ACTION_DOCS_LINK =
+ '/help/operations/metrics/alerts#trigger-actions-from-alerts';
+export const ISSUE_TEMPLATES_DOCS_LINK =
+ '/help/user/project/description_templates#create-an-issue-template';