"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TlsTranslations = exports.SyntheticsMonitorStatusTranslations = void 0; var _i18n = require("@kbn/i18n"); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ const SyntheticsMonitorStatusTranslations = { defaultActionMessage: _i18n.i18n.translate('xpack.synthetics.alerts.syntheticsMonitorStatus.defaultActionMessage', { // the extra spaces before `\n` are needed to properly convert this from markdown to an HTML email defaultMessage: `"{monitorName}" is {status} from {locationName}. - Elastic Synthetics\n\nDetails:\n\n- Monitor name: {monitorName} \n- {monitorUrlLabel}: {monitorUrl} \n- Monitor type: {monitorType} \n- Checked at: {checkedAt} \n- From: {locationName} \n- Error received: {lastErrorMessage} \n{linkMessage}`, values: { monitorName: '{{context.monitorName}}', monitorType: '{{context.monitorType}}', monitorUrl: '{{{context.monitorUrl}}}', monitorUrlLabel: '{{context.monitorUrlLabel}}', status: '{{{context.status}}}', lastErrorMessage: '{{{context.lastErrorMessage}}}', locationName: '{{context.locationName}}', checkedAt: '{{context.checkedAt}}', linkMessage: '{{{context.linkMessage}}}' } }), defaultSubjectMessage: _i18n.i18n.translate('xpack.synthetics.alerts.syntheticsMonitorStatus.defaultSubjectMessage', { defaultMessage: '"{monitorName}" ({locationName}) is down - Elastic Synthetics', values: { monitorName: '{{context.monitorName}}', locationName: '{{context.locationName}}' } }), defaultRecoverySubjectMessage: _i18n.i18n.translate('xpack.synthetics.alerts.syntheticsMonitorStatus.defaultRecoverySubjectMessage', { defaultMessage: '"{monitorName}" ({locationName}) {recoveryStatus} - Elastic Synthetics', values: { recoveryStatus: '{{context.recoveryStatus}}', locationName: '{{context.locationName}}', monitorName: '{{context.monitorName}}' } }), defaultRecoveryMessage: _i18n.i18n.translate('xpack.synthetics.alerts.syntheticsMonitorStatus.defaultRecoveryMessage', { // the extra spaces before `\n` are needed to properly convert this from markdown to an HTML email defaultMessage: 'The alert for "{monitorName}" from {locationName} is no longer active: {recoveryReason}. - Elastic Synthetics\n\nDetails:\n\n- Monitor name: {monitorName} \n- {monitorUrlLabel}: {monitorUrl} \n- Monitor type: {monitorType} \n- From: {locationName} \n- Last error received: {lastErrorMessage} \n{linkMessage}', values: { monitorName: '{{context.monitorName}}', monitorUrlLabel: '{{context.monitorUrlLabel}}', monitorUrl: '{{{context.monitorUrl}}}', monitorType: '{{context.monitorType}}', locationName: '{{context.locationName}}', recoveryReason: '{{context.recoveryReason}}', lastErrorMessage: '{{{context.lastErrorMessage}}}', linkMessage: '{{{context.linkMessage}}}' } }), name: _i18n.i18n.translate('xpack.synthetics.alerts.syntheticsMonitorStatus.clientName', { defaultMessage: 'Monitor status' }), description: _i18n.i18n.translate('xpack.synthetics.alerts.syntheticsMonitorStatus.description', { defaultMessage: 'Alert when a monitor is down.' }) }; exports.SyntheticsMonitorStatusTranslations = SyntheticsMonitorStatusTranslations; const TlsTranslations = { defaultActionMessage: _i18n.i18n.translate('xpack.synthetics.rules.tls.defaultActionMessage', { defaultMessage: `TLS certificate {commonName} {status} - Elastic Synthetics\n\nDetails:\n\n- Summary: {summary}\n- Common name: {commonName}\n- Issuer: {issuer}\n- Monitor: {monitorName} \n- Monitor URL: {monitorUrl} \n- Monitor type: {monitorType} \n- From: {locationName}`, values: { commonName: '{{context.commonName}}', issuer: '{{context.issuer}}', summary: '{{context.summary}}', status: '{{context.status}}', monitorName: '{{context.monitorName}}', monitorUrl: '{{{context.monitorUrl}}}', monitorType: '{{context.monitorType}}', locationName: '{{context.locationName}}' } }), defaultRecoveryMessage: _i18n.i18n.translate('xpack.synthetics.rules.tls.defaultRecoveryMessage', { defaultMessage: `TLS alert for monitor "{monitorName}" has recovered - Elastic Synthetics\n\nDetails:\n\n- Summary: {summary}\n- New status : {newStatus}\n- Previous status: {previousStatus}\n- Monitor: {monitorName} \n- URL: {monitorUrl} \n- Monitor type: {monitorType} \n- From: {locationName}`, values: { summary: '{{context.summary}}', previousStatus: '{{context.previousStatus}}', newStatus: '{{context.newStatus}}', monitorName: '{{context.monitorName}}', monitorUrl: '{{{context.monitorUrl}}}', monitorType: '{{context.monitorType}}', locationName: '{{context.locationName}}' } }), name: _i18n.i18n.translate('xpack.synthetics.rules.tls.clientName', { defaultMessage: 'Synthetics TLS' }), description: _i18n.i18n.translate('xpack.synthetics.rules.tls.description', { defaultMessage: 'Alert when the TLS certificate of a Synthetics monitor is about to expire.' }), defaultSubjectMessage: _i18n.i18n.translate('xpack.synthetics.alerts.syntheticsMonitorTLS.defaultSubjectMessage', { defaultMessage: 'Alert triggered for certificate {commonName} - Elastic Synthetics', values: { commonName: '{{context.commonName}}' } }), defaultRecoverySubjectMessage: _i18n.i18n.translate('xpack.synthetics.alerts.syntheticsMonitorTLS.defaultRecoverySubjectMessage', { defaultMessage: 'Alert has resolved for certificate {commonName} - Elastic Synthetics', values: { commonName: '{{context.commonName}}' } }) }; exports.TlsTranslations = TlsTranslations;