mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Synthetics] Update translation keys (#130707)
* update keys * update * update test keys * change keys * more keys * updates * update * update * udate * update test * update
This commit is contained in:
parent
2ba68e7edc
commit
80a2aa1f74
222 changed files with 3958 additions and 3796 deletions
|
@ -60,7 +60,7 @@
|
|||
"xpack.transform": "plugins/transform",
|
||||
"xpack.triggersActionsUI": "plugins/triggers_actions_ui",
|
||||
"xpack.upgradeAssistant": "plugins/upgrade_assistant",
|
||||
"xpack.uptime": ["plugins/synthetics"],
|
||||
"xpack.synthetics": ["plugins/synthetics"],
|
||||
"xpack.ux": ["plugins/ux"],
|
||||
"xpack.urlDrilldown": "plugins/drilldowns/url_drilldown",
|
||||
"xpack.watcher": "plugins/watcher",
|
||||
|
|
|
@ -52,3 +52,10 @@ export const CLIENT_ALERT_TYPES = {
|
|||
TLS: 'xpack.uptime.alerts.tlsCertificate',
|
||||
DURATION_ANOMALY: 'xpack.uptime.alerts.durationAnomaly',
|
||||
};
|
||||
|
||||
export const UPTIME_RULE_TYPES = [
|
||||
'xpack.uptime.alerts.tls',
|
||||
'xpack.uptime.alerts.tlsCertificate',
|
||||
'xpack.uptime.alerts.monitorStatus',
|
||||
'xpack.uptime.alerts.durationAnomaly',
|
||||
];
|
||||
|
|
|
@ -9,16 +9,16 @@ import { i18n } from '@kbn/i18n';
|
|||
|
||||
export const PLUGIN = {
|
||||
APP_ROOT_ID: 'react-uptime-root',
|
||||
DESCRIPTION: i18n.translate('xpack.uptime.pluginDescription', {
|
||||
DESCRIPTION: i18n.translate('xpack.synthetics.pluginDescription', {
|
||||
defaultMessage: 'Synthetics monitoring',
|
||||
description: 'The description text that will appear in the feature catalogue.',
|
||||
}),
|
||||
ID: 'uptime',
|
||||
LOCAL_STORAGE_KEY: 'xpack.uptime',
|
||||
NAME: i18n.translate('xpack.uptime.featureRegistry.syntheticsFeatureName', {
|
||||
LOCAL_STORAGE_KEY: 'xpack.synthetics.',
|
||||
NAME: i18n.translate('xpack.synthetics.featureRegistry.syntheticsFeatureName', {
|
||||
defaultMessage: 'Synthetics and Uptime',
|
||||
}),
|
||||
TITLE: i18n.translate('xpack.uptime.uptimeFeatureCatalogueTitle', {
|
||||
TITLE: i18n.translate('xpack.synthetics.uptimeFeatureCatalogueTitle', {
|
||||
defaultMessage: 'Uptime',
|
||||
}),
|
||||
};
|
||||
|
|
|
@ -8,38 +8,44 @@
|
|||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
export const VALUE_MUST_BE_GREATER_THAN_ZERO = i18n.translate(
|
||||
'xpack.uptime.settings.invalid.error',
|
||||
'xpack.synthetics.settings.invalid.error',
|
||||
{
|
||||
defaultMessage: 'Value must be greater than 0.',
|
||||
}
|
||||
);
|
||||
|
||||
export const VALUE_MUST_BE_AN_INTEGER = i18n.translate('xpack.uptime.settings.invalid.nanError', {
|
||||
defaultMessage: 'Value must be an integer.',
|
||||
});
|
||||
export const VALUE_MUST_BE_AN_INTEGER = i18n.translate(
|
||||
'xpack.synthetics.settings.invalid.nanError',
|
||||
{
|
||||
defaultMessage: 'Value must be an integer.',
|
||||
}
|
||||
);
|
||||
|
||||
export const MonitorStatusTranslations = {
|
||||
defaultActionMessage: i18n.translate('xpack.uptime.alerts.monitorStatus.defaultActionMessage', {
|
||||
defaultMessage:
|
||||
'Monitor {monitorName} with url {monitorUrl} from {observerLocation} {statusMessage} The latest error message is {latestErrorMessage}',
|
||||
values: {
|
||||
monitorName: '{{state.monitorName}}',
|
||||
monitorUrl: '{{{state.monitorUrl}}}',
|
||||
statusMessage: '{{{state.statusMessage}}}',
|
||||
latestErrorMessage: '{{{state.latestErrorMessage}}}',
|
||||
observerLocation: '{{state.observerLocation}}',
|
||||
},
|
||||
}),
|
||||
name: i18n.translate('xpack.uptime.alerts.monitorStatus.clientName', {
|
||||
defaultActionMessage: i18n.translate(
|
||||
'xpack.synthetics.alerts.monitorStatus.defaultActionMessage',
|
||||
{
|
||||
defaultMessage:
|
||||
'Monitor {monitorName} with url {monitorUrl} from {observerLocation} {statusMessage} The latest error message is {latestErrorMessage}',
|
||||
values: {
|
||||
monitorName: '{{state.monitorName}}',
|
||||
monitorUrl: '{{{state.monitorUrl}}}',
|
||||
statusMessage: '{{{state.statusMessage}}}',
|
||||
latestErrorMessage: '{{{state.latestErrorMessage}}}',
|
||||
observerLocation: '{{state.observerLocation}}',
|
||||
},
|
||||
}
|
||||
),
|
||||
name: i18n.translate('xpack.synthetics.alerts.monitorStatus.clientName', {
|
||||
defaultMessage: 'Uptime monitor status',
|
||||
}),
|
||||
description: i18n.translate('xpack.uptime.alerts.monitorStatus.description', {
|
||||
description: i18n.translate('xpack.synthetics.alerts.monitorStatus.description', {
|
||||
defaultMessage: 'Alert when a monitor is down or an availability threshold is breached.',
|
||||
}),
|
||||
};
|
||||
|
||||
export const TlsTranslations = {
|
||||
defaultActionMessage: i18n.translate('xpack.uptime.alerts.tls.defaultActionMessage', {
|
||||
defaultActionMessage: i18n.translate('xpack.synthetics.alerts.tls.defaultActionMessage', {
|
||||
defaultMessage: `Detected TLS certificate {commonName} from issuer {issuer} is {status}. Certificate {summary}
|
||||
`,
|
||||
values: {
|
||||
|
@ -49,16 +55,16 @@ export const TlsTranslations = {
|
|||
status: '{{state.status}}',
|
||||
},
|
||||
}),
|
||||
name: i18n.translate('xpack.uptime.alerts.tls.clientName', {
|
||||
name: i18n.translate('xpack.synthetics.alerts.tls.clientName', {
|
||||
defaultMessage: 'Uptime TLS',
|
||||
}),
|
||||
description: i18n.translate('xpack.uptime.alerts.tls.description', {
|
||||
description: i18n.translate('xpack.synthetics.alerts.tls.description', {
|
||||
defaultMessage: 'Alert when the TLS certificate of an Uptime monitor is about to expire.',
|
||||
}),
|
||||
};
|
||||
|
||||
export const TlsTranslationsLegacy = {
|
||||
defaultActionMessage: i18n.translate('xpack.uptime.alerts.tls.legacy.defaultActionMessage', {
|
||||
defaultActionMessage: i18n.translate('xpack.synthetics.alerts.tls.legacy.defaultActionMessage', {
|
||||
defaultMessage: `Detected {count} TLS certificates expiring or becoming too old.
|
||||
{expiringConditionalOpen}
|
||||
Expiring cert count: {expiringCount}
|
||||
|
@ -81,34 +87,37 @@ Aging Certificates: {agingCommonNameAndDate}
|
|||
agingConditionalClose: '{{/state.hasAging}}',
|
||||
},
|
||||
}),
|
||||
name: i18n.translate('xpack.uptime.alerts.tls.legacy.clientName', {
|
||||
name: i18n.translate('xpack.synthetics.alerts.tls.legacy.clientName', {
|
||||
defaultMessage: 'Uptime TLS (Legacy)',
|
||||
}),
|
||||
description: i18n.translate('xpack.uptime.alerts.tls.legacy.description', {
|
||||
description: i18n.translate('xpack.synthetics.alerts.tls.legacy.description', {
|
||||
defaultMessage:
|
||||
'Alert when the TLS certificate of an Uptime monitor is about to expire. This alert will be deprecated in a future version.',
|
||||
}),
|
||||
};
|
||||
|
||||
export const DurationAnomalyTranslations = {
|
||||
defaultActionMessage: i18n.translate('xpack.uptime.alerts.durationAnomaly.defaultActionMessage', {
|
||||
defaultMessage: `Abnormal ({severity} level) response time detected on {monitor} with url {monitorUrl} at {anomalyStartTimestamp}. Anomaly severity score is {severityScore}.
|
||||
defaultActionMessage: i18n.translate(
|
||||
'xpack.synthetics.alerts.durationAnomaly.defaultActionMessage',
|
||||
{
|
||||
defaultMessage: `Abnormal ({severity} level) response time detected on {monitor} with url {monitorUrl} at {anomalyStartTimestamp}. Anomaly severity score is {severityScore}.
|
||||
Response times as high as {slowestAnomalyResponse} have been detected from location {observerLocation}. Expected response time is {expectedResponseTime}.`,
|
||||
values: {
|
||||
severity: '{{state.severity}}',
|
||||
anomalyStartTimestamp: '{{state.anomalyStartTimestamp}}',
|
||||
monitor: '{{state.monitor}}',
|
||||
monitorUrl: '{{{state.monitorUrl}}}',
|
||||
slowestAnomalyResponse: '{{state.slowestAnomalyResponse}}',
|
||||
expectedResponseTime: '{{state.expectedResponseTime}}',
|
||||
severityScore: '{{state.severityScore}}',
|
||||
observerLocation: '{{state.observerLocation}}',
|
||||
},
|
||||
}),
|
||||
name: i18n.translate('xpack.uptime.alerts.durationAnomaly.clientName', {
|
||||
values: {
|
||||
severity: '{{state.severity}}',
|
||||
anomalyStartTimestamp: '{{state.anomalyStartTimestamp}}',
|
||||
monitor: '{{state.monitor}}',
|
||||
monitorUrl: '{{{state.monitorUrl}}}',
|
||||
slowestAnomalyResponse: '{{state.slowestAnomalyResponse}}',
|
||||
expectedResponseTime: '{{state.expectedResponseTime}}',
|
||||
severityScore: '{{state.severityScore}}',
|
||||
observerLocation: '{{state.observerLocation}}',
|
||||
},
|
||||
}
|
||||
),
|
||||
name: i18n.translate('xpack.synthetics.alerts.durationAnomaly.clientName', {
|
||||
defaultMessage: 'Uptime Duration Anomaly',
|
||||
}),
|
||||
description: i18n.translate('xpack.uptime.alerts.durationAnomaly.description', {
|
||||
description: i18n.translate('xpack.synthetics.alerts.durationAnomaly.description', {
|
||||
defaultMessage: 'Alert when the Uptime monitor duration is anomalous.',
|
||||
}),
|
||||
};
|
||||
|
|
|
@ -27,7 +27,7 @@ journey('StatusFlyoutInAlertingApp', async ({ page, params }) => {
|
|||
step('Open monitor status flyout', async () => {
|
||||
await page.click(byTestId('createFirstRuleButton'));
|
||||
await waitForLoadingToFinish({ page });
|
||||
await page.click(byTestId('"xpack.uptime.alerts.monitorStatus-SelectOption"'));
|
||||
await page.click(byTestId('"xpack.synthetics.alerts.monitorStatus-SelectOption"'));
|
||||
await waitForLoadingToFinish({ page });
|
||||
await assertText({ page, text: 'This alert will apply to approximately 0 monitors.' });
|
||||
});
|
||||
|
@ -39,9 +39,12 @@ journey('StatusFlyoutInAlertingApp', async ({ page, params }) => {
|
|||
});
|
||||
|
||||
step('can open query bar', async () => {
|
||||
await page.click(byTestId('"xpack.uptime.alerts.monitorStatus.filterBar"'));
|
||||
await page.click(byTestId('"xpack.synthetics.alerts.monitorStatus.filterBar"'));
|
||||
|
||||
await page.fill(byTestId('"xpack.uptime.alerts.monitorStatus.filterBar"'), 'monitor.type : ');
|
||||
await page.fill(
|
||||
byTestId('"xpack.synthetics.alerts.monitorStatus.filterBar"'),
|
||||
'monitor.type : '
|
||||
);
|
||||
|
||||
await waitForLoadingToFinish({ page });
|
||||
|
||||
|
@ -58,7 +61,7 @@ journey('StatusFlyoutInAlertingApp', async ({ page, params }) => {
|
|||
step('Open tls alert flyout', async () => {
|
||||
await page.click(byTestId('createFirstRuleButton'));
|
||||
await waitForLoadingToFinish({ page });
|
||||
await page.click(byTestId('"xpack.uptime.alerts.tlsCertificate-SelectOption"'));
|
||||
await page.click(byTestId('"xpack.synthetics.alerts.tlsCertificate-SelectOption"'));
|
||||
await waitForLoadingToFinish({ page });
|
||||
await assertText({ page, text: 'has a certificate expiring within' });
|
||||
});
|
||||
|
|
|
@ -27,7 +27,7 @@ journey('TlsFlyoutInAlertingApp', async ({ page, params }) => {
|
|||
step('Open tls alert flyout', async () => {
|
||||
await page.click(byTestId('createFirstRuleButton'));
|
||||
await waitForLoadingToFinish({ page });
|
||||
await page.click(byTestId('"xpack.uptime.alerts.tlsCertificate-SelectOption"'));
|
||||
await page.click(byTestId('"xpack.synthetics.alerts.tlsCertificate-SelectOption"'));
|
||||
await waitForLoadingToFinish({ page });
|
||||
await assertText({ page, text: 'has a certificate expiring within' });
|
||||
});
|
||||
|
|
|
@ -54,7 +54,7 @@ journey('MonitorDetails', async ({ page, params }: { page: Page; params: any })
|
|||
'k5tlHm0B0I9WX_CzaNxm',
|
||||
'NZtkHm0B0I9WX_Cz89w9',
|
||||
'zJtkHm0B0I9WX_CzftsN',
|
||||
].map((id) => page.waitForSelector(byTestId(`"xpack.uptime.pingList.ping-${id}"`)))
|
||||
].map((id) => page.waitForSelector(byTestId(`"xpack.synthetics.pingList.ping-${id}"`)))
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -40,11 +40,11 @@ export function monitorDetailsPageProvider({ page, kibanaUrl }: { page: Page; ki
|
|||
},
|
||||
|
||||
async setStatusFilterUp() {
|
||||
await page.click('[data-test-subj="xpack.uptime.filterBar.filterStatusUp"]');
|
||||
await page.click('[data-test-subj="xpack.synthetics.filterBar.filterStatusUp"]');
|
||||
},
|
||||
|
||||
async setStatusFilterDown() {
|
||||
await page.click('[data-test-subj="xpack.uptime.filterBar.filterStatusDown"]');
|
||||
await page.click('[data-test-subj="xpack.synthetics.filterBar.filterStatusDown"]');
|
||||
},
|
||||
|
||||
async refreshFromES() {
|
||||
|
|
|
@ -128,7 +128,7 @@ export class UptimePlugin
|
|||
sortKey: 500,
|
||||
entries: [
|
||||
{
|
||||
label: i18n.translate('xpack.uptime.overview.heading', {
|
||||
label: i18n.translate('xpack.synthetics.overview.heading', {
|
||||
defaultMessage: 'Monitors',
|
||||
}),
|
||||
app: 'uptime',
|
||||
|
@ -137,7 +137,7 @@ export class UptimePlugin
|
|||
ignoreTrailingSlash: true,
|
||||
},
|
||||
{
|
||||
label: i18n.translate('xpack.uptime.certificatesPage.heading', {
|
||||
label: i18n.translate('xpack.synthetics.certificatesPage.heading', {
|
||||
defaultMessage: 'TLS Certificates',
|
||||
}),
|
||||
app: 'uptime',
|
||||
|
|
|
@ -55,7 +55,7 @@ export function renderApp(
|
|||
isLogsAvailable: logs,
|
||||
renderGlobalHelpControls: () =>
|
||||
setHelpExtension({
|
||||
appName: i18nFormatter.translate('xpack.uptime.header.appName', {
|
||||
appName: i18nFormatter.translate('xpack.synthetics.header.appName', {
|
||||
defaultMessage: 'Uptime',
|
||||
}),
|
||||
links: [
|
||||
|
|
|
@ -84,10 +84,10 @@ const Application = (props: UptimeAppProps) => {
|
|||
setBadge(
|
||||
!canSave
|
||||
? {
|
||||
text: i18n.translate('xpack.uptime.badge.readOnly.text', {
|
||||
text: i18n.translate('xpack.synthetics.badge.readOnly.text', {
|
||||
defaultMessage: 'Read only',
|
||||
}),
|
||||
tooltip: i18n.translate('xpack.uptime.badge.readOnly.tooltip', {
|
||||
tooltip: i18n.translate('xpack.synthetics.badge.readOnly.tooltip', {
|
||||
defaultMessage: 'Unable to save',
|
||||
}),
|
||||
iconType: 'glasses',
|
||||
|
|
|
@ -25,15 +25,15 @@ export function useNoDataConfig(): KibanaPageTemplateProps['noDataConfig'] {
|
|||
// Returns no data config when there is no historical data
|
||||
if (data && !data.indexExists) {
|
||||
return {
|
||||
solution: i18n.translate('xpack.uptime.noDataConfig.solutionName', {
|
||||
solution: i18n.translate('xpack.synthetics.noDataConfig.solutionName', {
|
||||
defaultMessage: 'Observability',
|
||||
}),
|
||||
actions: {
|
||||
beats: {
|
||||
title: i18n.translate('xpack.uptime.noDataConfig.beatsCard.title', {
|
||||
title: i18n.translate('xpack.synthetics.noDataConfig.beatsCard.title', {
|
||||
defaultMessage: 'Add monitors with Heartbeat',
|
||||
}),
|
||||
description: i18n.translate('xpack.uptime.noDataConfig.beatsCard.description', {
|
||||
description: i18n.translate('xpack.synthetics.noDataConfig.beatsCard.description', {
|
||||
defaultMessage:
|
||||
'Proactively monitor the availability of your sites and services. Receive alerts and resolve issues faster to optimize your users experience.',
|
||||
}),
|
||||
|
|
|
@ -86,7 +86,7 @@ export const CertStatus: React.FC<Props> = ({ cert }) => {
|
|||
{' '}
|
||||
<DateText color="subdued" size="xs">
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.certs.status.ok.label"
|
||||
id="xpack.synthetics.certs.status.ok.label"
|
||||
defaultMessage=" for {okRelativeDate}"
|
||||
description='Denotes an amount of time for which a cert is valid. Example: "OK for 2 days"'
|
||||
values={{
|
||||
|
|
|
@ -15,7 +15,7 @@ export const CertificateTitle = () => {
|
|||
|
||||
return (
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.certificates.heading"
|
||||
id="xpack.synthetics.certificates.heading"
|
||||
defaultMessage="TLS Certificates ({total})"
|
||||
values={{
|
||||
total: <span data-test-subj="uptimeCertTotal">{total ?? 0}</span>,
|
||||
|
|
|
@ -7,70 +7,70 @@
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
export const OK = i18n.translate('xpack.uptime.certs.ok', {
|
||||
export const OK = i18n.translate('xpack.synthetics.certs.ok', {
|
||||
defaultMessage: 'OK',
|
||||
});
|
||||
|
||||
export const EXPIRED = i18n.translate('xpack.uptime.certs.expired', {
|
||||
export const EXPIRED = i18n.translate('xpack.synthetics.certs.expired', {
|
||||
defaultMessage: 'Expired',
|
||||
});
|
||||
|
||||
export const EXPIRES_SOON = i18n.translate('xpack.uptime.certs.expireSoon', {
|
||||
export const EXPIRES_SOON = i18n.translate('xpack.synthetics.certs.expireSoon', {
|
||||
defaultMessage: 'Expires soon',
|
||||
});
|
||||
|
||||
export const EXPIRES = i18n.translate('xpack.uptime.certs.expires', {
|
||||
export const EXPIRES = i18n.translate('xpack.synthetics.certs.expires', {
|
||||
defaultMessage: 'Expires',
|
||||
});
|
||||
|
||||
export const SEARCH_CERTS = i18n.translate('xpack.uptime.certs.searchCerts', {
|
||||
export const SEARCH_CERTS = i18n.translate('xpack.synthetics.certs.searchCerts', {
|
||||
defaultMessage: 'Search certificates',
|
||||
});
|
||||
|
||||
export const STATUS_COL = i18n.translate('xpack.uptime.certs.list.status', {
|
||||
export const STATUS_COL = i18n.translate('xpack.synthetics.certs.list.status', {
|
||||
defaultMessage: 'Status',
|
||||
});
|
||||
|
||||
export const TOO_OLD = i18n.translate('xpack.uptime.certs.list.status.old', {
|
||||
export const TOO_OLD = i18n.translate('xpack.synthetics.certs.list.status.old', {
|
||||
defaultMessage: 'Too old',
|
||||
});
|
||||
|
||||
export const COMMON_NAME_COL = i18n.translate('xpack.uptime.certs.list.commonName', {
|
||||
export const COMMON_NAME_COL = i18n.translate('xpack.synthetics.certs.list.commonName', {
|
||||
defaultMessage: 'Common name',
|
||||
});
|
||||
|
||||
export const MONITORS_COL = i18n.translate('xpack.uptime.certs.list.monitors', {
|
||||
export const MONITORS_COL = i18n.translate('xpack.synthetics.certs.list.monitors', {
|
||||
defaultMessage: 'Monitors',
|
||||
});
|
||||
|
||||
export const ISSUED_BY_COL = i18n.translate('xpack.uptime.certs.list.issuedBy', {
|
||||
export const ISSUED_BY_COL = i18n.translate('xpack.synthetics.certs.list.issuedBy', {
|
||||
defaultMessage: 'Issued by',
|
||||
});
|
||||
|
||||
export const VALID_UNTIL_COL = i18n.translate('xpack.uptime.certs.list.validUntil', {
|
||||
export const VALID_UNTIL_COL = i18n.translate('xpack.synthetics.certs.list.validUntil', {
|
||||
defaultMessage: 'Valid until',
|
||||
});
|
||||
|
||||
export const AGE_COL = i18n.translate('xpack.uptime.certs.list.ageCol', {
|
||||
export const AGE_COL = i18n.translate('xpack.synthetics.certs.list.ageCol', {
|
||||
defaultMessage: 'Age',
|
||||
});
|
||||
|
||||
export const DAYS = i18n.translate('xpack.uptime.certs.list.days', {
|
||||
export const DAYS = i18n.translate('xpack.synthetics.certs.list.days', {
|
||||
defaultMessage: 'days',
|
||||
});
|
||||
|
||||
export const FINGERPRINTS_COL = i18n.translate('xpack.uptime.certs.list.expirationDate', {
|
||||
export const FINGERPRINTS_COL = i18n.translate('xpack.synthetics.certs.list.expirationDate', {
|
||||
defaultMessage: 'Fingerprints',
|
||||
});
|
||||
|
||||
export const COPY_FINGERPRINT = i18n.translate('xpack.uptime.certs.list.copyFingerprint', {
|
||||
export const COPY_FINGERPRINT = i18n.translate('xpack.synthetics.certs.list.copyFingerprint', {
|
||||
defaultMessage: 'Click to copy fingerprint value',
|
||||
});
|
||||
|
||||
export const NO_CERTS_AVAILABLE = i18n.translate('xpack.uptime.certs.list.empty', {
|
||||
export const NO_CERTS_AVAILABLE = i18n.translate('xpack.synthetics.certs.list.empty', {
|
||||
defaultMessage: 'No Certificates found. Note: Certificates are only visible for Heartbeat 7.8+',
|
||||
});
|
||||
|
||||
export const LOADING_CERTIFICATES = i18n.translate('xpack.uptime.certificates.loading', {
|
||||
export const LOADING_CERTIFICATES = i18n.translate('xpack.synthetics.certificates.loading', {
|
||||
defaultMessage: 'Loading certificates ...',
|
||||
});
|
||||
|
|
|
@ -812,13 +812,13 @@ exports[`DonutChart component renders a donut chart 1`] = `
|
|||
</span>
|
||||
<span
|
||||
class="euiFlexItem euiFlexItem--flexGrowZero c1"
|
||||
data-test-subj="xpack.uptime.snapshot.donutChart.down.label"
|
||||
data-test-subj="xpack.synthetics.snapshot.donutChart.down.label"
|
||||
>
|
||||
Down
|
||||
</span>
|
||||
<span
|
||||
class="euiFlexItem c2"
|
||||
data-test-subj="xpack.uptime.snapshot.donutChart.down"
|
||||
data-test-subj="xpack.synthetics.snapshot.donutChart.down"
|
||||
>
|
||||
32
|
||||
</span>
|
||||
|
@ -854,13 +854,13 @@ exports[`DonutChart component renders a donut chart 1`] = `
|
|||
</span>
|
||||
<span
|
||||
class="euiFlexItem euiFlexItem--flexGrowZero c1"
|
||||
data-test-subj="xpack.uptime.snapshot.donutChart.up.label"
|
||||
data-test-subj="xpack.synthetics.snapshot.donutChart.up.label"
|
||||
>
|
||||
Up
|
||||
</span>
|
||||
<span
|
||||
class="euiFlexItem c2"
|
||||
data-test-subj="xpack.uptime.snapshot.donutChart.up"
|
||||
data-test-subj="xpack.synthetics.snapshot.donutChart.up"
|
||||
>
|
||||
95
|
||||
</span>
|
||||
|
@ -967,13 +967,13 @@ exports[`DonutChart component renders a green check when all monitors are up 1`]
|
|||
</span>
|
||||
<span
|
||||
class="euiFlexItem euiFlexItem--flexGrowZero c2"
|
||||
data-test-subj="xpack.uptime.snapshot.donutChart.down.label"
|
||||
data-test-subj="xpack.synthetics.snapshot.donutChart.down.label"
|
||||
>
|
||||
Down
|
||||
</span>
|
||||
<span
|
||||
class="euiFlexItem c3"
|
||||
data-test-subj="xpack.uptime.snapshot.donutChart.down"
|
||||
data-test-subj="xpack.synthetics.snapshot.donutChart.down"
|
||||
>
|
||||
0
|
||||
</span>
|
||||
|
@ -1009,13 +1009,13 @@ exports[`DonutChart component renders a green check when all monitors are up 1`]
|
|||
</span>
|
||||
<span
|
||||
class="euiFlexItem euiFlexItem--flexGrowZero c2"
|
||||
data-test-subj="xpack.uptime.snapshot.donutChart.up.label"
|
||||
data-test-subj="xpack.synthetics.snapshot.donutChart.up.label"
|
||||
>
|
||||
Up
|
||||
</span>
|
||||
<span
|
||||
class="euiFlexItem c3"
|
||||
data-test-subj="xpack.uptime.snapshot.donutChart.up"
|
||||
data-test-subj="xpack.synthetics.snapshot.donutChart.up"
|
||||
>
|
||||
95
|
||||
</span>
|
||||
|
|
|
@ -39,14 +39,14 @@ export const AnnotationTooltip = ({ details }: { details: string }) => {
|
|||
<TimeDiv>{moment(data.time).format('lll')}</TimeDiv>
|
||||
<Header>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.charts.mlAnnotation.header"
|
||||
id="xpack.synthetics.charts.mlAnnotation.header"
|
||||
defaultMessage="Score: {score}"
|
||||
values={{ score: data.score.toFixed(2) }}
|
||||
/>
|
||||
</Header>
|
||||
<RecordSeverity color={data.color}>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.charts.mlAnnotation.severity"
|
||||
id="xpack.synthetics.charts.mlAnnotation.severity"
|
||||
defaultMessage="Severity: {severity}"
|
||||
values={{ severity: capitalizeFirstLetter(data.severity) }}
|
||||
/>
|
||||
|
|
|
@ -52,7 +52,7 @@ export const DonutChart = ({ height, down, up }: DonutChartProps) => {
|
|||
<EuiFlexItem grow={false} style={{ position: 'relative' }}>
|
||||
<Chart
|
||||
size={height}
|
||||
aria-label={i18n.translate('xpack.uptime.snapshot.donutChart.ariaLabel', {
|
||||
aria-label={i18n.translate('xpack.synthetics.snapshot.donutChart.ariaLabel', {
|
||||
defaultMessage:
|
||||
'Pie chart showing the current status. {down} of {total} monitors are down.',
|
||||
values: { down, total: up + down },
|
||||
|
|
|
@ -19,16 +19,16 @@ describe('DonutChartLegend', () => {
|
|||
const component = renderWithIntl(<DonutChartLegend down={down} up={up} />);
|
||||
|
||||
expect(
|
||||
component.find('[data-test-subj="xpack.uptime.snapshot.donutChart.up.label"]').text()
|
||||
component.find('[data-test-subj="xpack.synthetics.snapshot.donutChart.up.label"]').text()
|
||||
).toBe(STATUS_UP_LABEL);
|
||||
expect(component.find('[data-test-subj="xpack.uptime.snapshot.donutChart.up"]').text()).toBe(
|
||||
`${up}`
|
||||
);
|
||||
expect(
|
||||
component.find('[data-test-subj="xpack.uptime.snapshot.donutChart.down.label"]').text()
|
||||
component.find('[data-test-subj="xpack.synthetics.snapshot.donutChart.up"]').text()
|
||||
).toBe(`${up}`);
|
||||
expect(
|
||||
component.find('[data-test-subj="xpack.synthetics.snapshot.donutChart.down.label"]').text()
|
||||
).toBe(STATUS_DOWN_LABEL);
|
||||
expect(component.find('[data-test-subj="xpack.uptime.snapshot.donutChart.down"]').text()).toBe(
|
||||
`${down}`
|
||||
);
|
||||
expect(
|
||||
component.find('[data-test-subj="xpack.synthetics.snapshot.donutChart.down"]').text()
|
||||
).toBe(`${down}`);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -36,14 +36,14 @@ export const DonutChartLegend = ({ down, up }: Props) => {
|
|||
color={danger}
|
||||
content={down}
|
||||
message={STATUS_DOWN_LABEL}
|
||||
data-test-subj={'xpack.uptime.snapshot.donutChart.down'}
|
||||
data-test-subj={'xpack.synthetics.snapshot.donutChart.down'}
|
||||
/>
|
||||
<EuiSpacer size="m" />
|
||||
<DonutChartLegendRow
|
||||
color={gray}
|
||||
content={up}
|
||||
message={STATUS_UP_LABEL}
|
||||
data-test-subj={'xpack.uptime.snapshot.donutChart.up'}
|
||||
data-test-subj={'xpack.synthetics.snapshot.donutChart.up'}
|
||||
/>
|
||||
</LegendContainer>
|
||||
);
|
||||
|
|
|
@ -95,7 +95,7 @@ export const DurationChartComponent = ({
|
|||
|
||||
return (
|
||||
<ChartWrapper
|
||||
aria-label={i18n.translate('xpack.uptime.monitorCharts.durationChart.wrapper.label', {
|
||||
aria-label={i18n.translate('xpack.synthetics.monitorCharts.durationChart.wrapper.label', {
|
||||
defaultMessage: `A chart displaying the monitor's ping duration, grouped by location.`,
|
||||
})}
|
||||
height={MONITOR_CHART_HEIGHT}
|
||||
|
@ -123,7 +123,7 @@ export const DurationChartComponent = ({
|
|||
id="left"
|
||||
position={Position.Left}
|
||||
tickFormat={(d) => getTickFormat(d)}
|
||||
title={i18n.translate('xpack.uptime.monitorCharts.durationChart.leftAxis.title', {
|
||||
title={i18n.translate('xpack.synthetics.monitorCharts.durationChart.leftAxis.title', {
|
||||
defaultMessage: 'Duration in {unit}',
|
||||
values: { unit: monitor.monitor.type === 'browser' ? SECONDS_LABEL : MS_LABEL },
|
||||
})}
|
||||
|
@ -141,12 +141,12 @@ export const DurationChartComponent = ({
|
|||
<ChartEmptyState
|
||||
body={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.durationChart.emptyPrompt.description"
|
||||
id="xpack.synthetics.durationChart.emptyPrompt.description"
|
||||
defaultMessage="This monitor has never been {emphasizedText} during the selected time range."
|
||||
values={{ emphasizedText: <strong>up</strong> }}
|
||||
/>
|
||||
}
|
||||
title={i18n.translate('xpack.uptime.durationChart.emptyPrompt.title', {
|
||||
title={i18n.translate('xpack.synthetics.durationChart.emptyPrompt.title', {
|
||||
defaultMessage: 'No duration data available',
|
||||
})}
|
||||
/>
|
||||
|
|
|
@ -92,7 +92,7 @@ export const MonitorBarSeries = ({ histogramSeries, minInterval }: MonitorBarSer
|
|||
id={id}
|
||||
color={danger}
|
||||
data={(histogramSeries || []).map(({ timestamp, down }) => [timestamp, down])}
|
||||
name={i18n.translate('xpack.uptime.monitorList.downLineSeries.downLabel', {
|
||||
name={i18n.translate('xpack.synthetics.monitorList.downLineSeries.downLabel', {
|
||||
defaultMessage: 'Down checks',
|
||||
})}
|
||||
timeZone="local"
|
||||
|
@ -108,7 +108,7 @@ export const MonitorBarSeries = ({ histogramSeries, minInterval }: MonitorBarSer
|
|||
position="top"
|
||||
content={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorList.noDownHistory"
|
||||
id="xpack.synthetics.monitorList.noDownHistory"
|
||||
defaultMessage="This monitor has never been {emphasizedText} during the selected time range."
|
||||
values={{ emphasizedText: <strong>down</strong> }}
|
||||
/>
|
||||
|
|
|
@ -88,10 +88,10 @@ export const PingHistogramComponent: React.FC<PingHistogramComponentProps> = ({
|
|||
if (!data?.histogram?.length) {
|
||||
content = (
|
||||
<ChartEmptyState
|
||||
title={i18n.translate('xpack.uptime.snapshot.noDataTitle', {
|
||||
title={i18n.translate('xpack.synthetics.snapshot.noDataTitle', {
|
||||
defaultMessage: 'No ping data available',
|
||||
})}
|
||||
body={i18n.translate('xpack.uptime.snapshot.noDataDescription', {
|
||||
body={i18n.translate('xpack.synthetics.snapshot.noDataDescription', {
|
||||
defaultMessage: 'There are no pings in the selected time range.',
|
||||
})}
|
||||
/>
|
||||
|
@ -129,7 +129,7 @@ export const PingHistogramComponent: React.FC<PingHistogramComponentProps> = ({
|
|||
<ChartWrapper
|
||||
height={height}
|
||||
loading={loading}
|
||||
aria-label={i18n.translate('xpack.uptime.snapshotHistogram.description', {
|
||||
aria-label={i18n.translate('xpack.synthetics.snapshotHistogram.description', {
|
||||
defaultMessage:
|
||||
'Bar Chart showing uptime status over time from {startTime} to {endTime}.',
|
||||
values: {
|
||||
|
@ -151,7 +151,7 @@ export const PingHistogramComponent: React.FC<PingHistogramComponentProps> = ({
|
|||
{...chartTheme}
|
||||
/>
|
||||
<Axis
|
||||
id={i18n.translate('xpack.uptime.snapshotHistogram.xAxisId', {
|
||||
id={i18n.translate('xpack.synthetics.snapshotHistogram.xAxisId', {
|
||||
defaultMessage: 'Ping X Axis',
|
||||
})}
|
||||
position={Position.Bottom}
|
||||
|
@ -159,13 +159,13 @@ export const PingHistogramComponent: React.FC<PingHistogramComponentProps> = ({
|
|||
tickFormat={timeFormatter(getChartDateLabel(absoluteStartDate, absoluteEndDate))}
|
||||
/>
|
||||
<Axis
|
||||
id={i18n.translate('xpack.uptime.snapshotHistogram.yAxisId', {
|
||||
id={i18n.translate('xpack.synthetics.snapshotHistogram.yAxisId', {
|
||||
defaultMessage: 'Ping Y Axis',
|
||||
})}
|
||||
position="left"
|
||||
tickFormat={(d) => numeral(d).format('0')}
|
||||
labelFormat={(d) => numeral(d).format('0a')}
|
||||
title={i18n.translate('xpack.uptime.snapshotHistogram.yAxis.title', {
|
||||
title={i18n.translate('xpack.synthetics.snapshotHistogram.yAxis.title', {
|
||||
defaultMessage: 'Pings',
|
||||
description:
|
||||
'The label on the y-axis of a chart that displays the number of times Heartbeat has pinged a set of services/websites.',
|
||||
|
@ -176,7 +176,7 @@ export const PingHistogramComponent: React.FC<PingHistogramComponentProps> = ({
|
|||
color={[danger, gray]}
|
||||
data={barData}
|
||||
id={STATUS_DOWN_LABEL}
|
||||
name={i18n.translate('xpack.uptime.snapshotHistogram.series.pings', {
|
||||
name={i18n.translate('xpack.synthetics.snapshotHistogram.series.pings', {
|
||||
defaultMessage: 'Monitor Pings',
|
||||
})}
|
||||
stackAccessors={['x']}
|
||||
|
@ -222,7 +222,7 @@ export const PingHistogramComponent: React.FC<PingHistogramComponentProps> = ({
|
|||
<EuiTitle size="s">
|
||||
<h3>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.snapshot.pingsOverTimeTitle"
|
||||
id="xpack.synthetics.snapshot.pingsOverTimeTitle"
|
||||
defaultMessage="Pings over time"
|
||||
/>
|
||||
</h3>
|
||||
|
@ -231,7 +231,10 @@ export const PingHistogramComponent: React.FC<PingHistogramComponentProps> = ({
|
|||
{showAnalyzeButton && (
|
||||
<EuiFlexItem grow={false}>
|
||||
<EuiButton size="s" href={pingHistogramExploratoryViewLink}>
|
||||
<FormattedMessage id="xpack.uptime.pingHistogram.analyze" defaultMessage="Analyze" />
|
||||
<FormattedMessage
|
||||
id="xpack.synthetics.pingHistogram.analyze"
|
||||
defaultMessage="Analyze"
|
||||
/>
|
||||
</EuiButton>
|
||||
</EuiFlexItem>
|
||||
)}
|
||||
|
|
|
@ -22,15 +22,15 @@ import { InspectorHeaderLink } from './inspector_header_link';
|
|||
import { monitorStatusSelector } from '../../../state/selectors';
|
||||
import { ManageMonitorsBtn } from './manage_monitors_btn';
|
||||
|
||||
const ADD_DATA_LABEL = i18n.translate('xpack.uptime.addDataButtonLabel', {
|
||||
const ADD_DATA_LABEL = i18n.translate('xpack.synthetics.addDataButtonLabel', {
|
||||
defaultMessage: 'Add data',
|
||||
});
|
||||
|
||||
const ANALYZE_DATA = i18n.translate('xpack.uptime.analyzeDataButtonLabel', {
|
||||
const ANALYZE_DATA = i18n.translate('xpack.synthetics.analyzeDataButtonLabel', {
|
||||
defaultMessage: 'Explore data',
|
||||
});
|
||||
|
||||
const ANALYZE_MESSAGE = i18n.translate('xpack.uptime.analyzeDataButtonLabel.message', {
|
||||
const ANALYZE_MESSAGE = i18n.translate('xpack.synthetics.analyzeDataButtonLabel.message', {
|
||||
defaultMessage:
|
||||
'Explore Data allows you to select and filter result data in any dimension and look for the cause or impact of performance problems.',
|
||||
});
|
||||
|
@ -76,7 +76,7 @@ export function ActionMenuContent(): React.ReactElement {
|
|||
<ManageMonitorsBtn />
|
||||
|
||||
<EuiHeaderLink
|
||||
aria-label={i18n.translate('xpack.uptime.page_header.settingsLink.label', {
|
||||
aria-label={i18n.translate('xpack.synthetics.page_header.settingsLink.label', {
|
||||
defaultMessage: 'Navigate to the Uptime settings page',
|
||||
})}
|
||||
color="text"
|
||||
|
@ -86,14 +86,17 @@ export function ActionMenuContent(): React.ReactElement {
|
|||
search: stringifyUrlParams(params, true),
|
||||
})}
|
||||
>
|
||||
<FormattedMessage id="xpack.uptime.page_header.settingsLink" defaultMessage="Settings" />
|
||||
<FormattedMessage
|
||||
id="xpack.synthetics.page_header.settingsLink"
|
||||
defaultMessage="Settings"
|
||||
/>
|
||||
</EuiHeaderLink>
|
||||
|
||||
<ToggleAlertFlyoutButton />
|
||||
|
||||
<EuiToolTip position="top" content={<p>{ANALYZE_MESSAGE}</p>}>
|
||||
<EuiHeaderLink
|
||||
aria-label={i18n.translate('xpack.uptime.page_header.analyzeData.label', {
|
||||
aria-label={i18n.translate('xpack.synthetics.page_header.analyzeData.label', {
|
||||
defaultMessage: 'Navigate to the "Explore Data" view to visualize Synthetics/User data',
|
||||
})}
|
||||
href={syntheticExploratoryViewLink}
|
||||
|
@ -106,7 +109,7 @@ export function ActionMenuContent(): React.ReactElement {
|
|||
</EuiToolTip>
|
||||
|
||||
<EuiHeaderLink
|
||||
aria-label={i18n.translate('xpack.uptime.page_header.addDataLink.label', {
|
||||
aria-label={i18n.translate('xpack.synthetics.page_header.addDataLink.label', {
|
||||
defaultMessage: 'Navigate to a tutorial about adding Uptime data',
|
||||
})}
|
||||
href={kibana.services?.application?.getUrlForApp('/home#/tutorial/uptimeMonitors')}
|
||||
|
|
|
@ -34,7 +34,7 @@ export function InspectorHeaderLink() {
|
|||
|
||||
return (
|
||||
<EuiHeaderLink color="primary" onClick={inspect}>
|
||||
{i18n.translate('xpack.uptime.inspectButtonText', {
|
||||
{i18n.translate('xpack.synthetics.inspectButtonText', {
|
||||
defaultMessage: 'Inspect',
|
||||
})}
|
||||
</EuiHeaderLink>
|
||||
|
|
|
@ -19,7 +19,7 @@ import { ClientPluginsSetup } from '../../../apps/plugin';
|
|||
import { useUptimeSettingsContext } from '../../../contexts/uptime_settings_context';
|
||||
|
||||
export const ManageMonitorsBtn = () => {
|
||||
const [isOpen, setIsOpen] = useLocalStorage('xpack.uptime.monitorManagement.openTour', true);
|
||||
const [isOpen, setIsOpen] = useLocalStorage('xpack.synthetics.monitorManagement.openTour', true);
|
||||
|
||||
const history = useHistory();
|
||||
|
||||
|
@ -70,7 +70,7 @@ export const ManageMonitorsBtn = () => {
|
|||
onClick={handleOnClick}
|
||||
>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.page_header.manageMonitors"
|
||||
id="xpack.synthetics.page_header.manageMonitors"
|
||||
defaultMessage="Monitor Management"
|
||||
/>
|
||||
</EuiHeaderLink>
|
||||
|
@ -79,23 +79,23 @@ export const ManageMonitorsBtn = () => {
|
|||
};
|
||||
|
||||
const GETTING_STARTED_LABEL = i18n.translate(
|
||||
'xpack.uptime.monitorManagement.gettingStarted.label',
|
||||
'xpack.synthetics.monitorManagement.gettingStarted.label',
|
||||
{
|
||||
defaultMessage: 'Get started with Synthetic Monitoring',
|
||||
}
|
||||
);
|
||||
|
||||
const MONITOR_MANAGEMENT_LABEL = i18n.translate('xpack.uptime.monitorManagement.try.label', {
|
||||
const MONITOR_MANAGEMENT_LABEL = i18n.translate('xpack.synthetics.monitorManagement.try.label', {
|
||||
defaultMessage: 'Try Monitor Management',
|
||||
});
|
||||
const DISMISS_LABEL = i18n.translate('xpack.uptime.monitorManagement.try.dismiss', {
|
||||
const DISMISS_LABEL = i18n.translate('xpack.synthetics.monitorManagement.try.dismiss', {
|
||||
defaultMessage: 'Dismiss',
|
||||
});
|
||||
|
||||
const NAVIGATE_LABEL = i18n.translate('xpack.uptime.page_header.manageLink.label', {
|
||||
const NAVIGATE_LABEL = i18n.translate('xpack.synthetics.page_header.manageLink.label', {
|
||||
defaultMessage: 'Navigate to the Uptime Monitor Management page',
|
||||
});
|
||||
|
||||
const NEW_LABEL = i18n.translate('xpack.uptime.monitorManagement.new.label', {
|
||||
const NEW_LABEL = i18n.translate('xpack.synthetics.monitorManagement.new.label', {
|
||||
defaultMessage: 'New',
|
||||
});
|
||||
|
|
|
@ -17,7 +17,7 @@ import { stringifyUrlParams } from '../../../lib/helper/stringify_url_params';
|
|||
const tabs = [
|
||||
{
|
||||
id: OVERVIEW_ROUTE,
|
||||
name: i18n.translate('xpack.uptime.overviewPage.headerText', {
|
||||
name: i18n.translate('xpack.synthetics.overviewPage.headerText', {
|
||||
defaultMessage: 'Overview',
|
||||
description: `The text that will be displayed in the app's heading when the Overview page loads.`,
|
||||
}),
|
||||
|
|
|
@ -28,7 +28,7 @@ export const LocationLink = ({ location, textSize }: LocationLinkProps) => {
|
|||
</EuiText>
|
||||
) : (
|
||||
<EuiLink href={locationDocsLink} target="_blank">
|
||||
{i18n.translate('xpack.uptime.monitorList.geoName.helpLinkAnnotation', {
|
||||
{i18n.translate('xpack.synthetics.monitorList.geoName.helpLinkAnnotation', {
|
||||
defaultMessage: 'Add location',
|
||||
description:
|
||||
'Text that instructs the user to navigate to our docs to add a geographic location to their data',
|
||||
|
|
|
@ -37,7 +37,7 @@ const getTagsFromPing = (ping: Ping) => {
|
|||
};
|
||||
|
||||
const getFilterLabel = (tag: string) => {
|
||||
return i18n.translate('xpack.uptime.monitorList.tags.filter', {
|
||||
return i18n.translate('xpack.synthetics.monitorList.tags.filter', {
|
||||
defaultMessage: 'Filter all monitors with tag {tag}',
|
||||
values: {
|
||||
tag,
|
||||
|
|
|
@ -7,44 +7,47 @@
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
export const URL_LABEL = i18n.translate('xpack.uptime.monitorList.table.url.name', {
|
||||
export const URL_LABEL = i18n.translate('xpack.synthetics.monitorList.table.url.name', {
|
||||
defaultMessage: 'Url',
|
||||
});
|
||||
|
||||
export const TAGS_LABEL = i18n.translate('xpack.uptime.monitorList.table.tags.name', {
|
||||
export const TAGS_LABEL = i18n.translate('xpack.synthetics.monitorList.table.tags.name', {
|
||||
defaultMessage: 'Tags',
|
||||
});
|
||||
|
||||
export const STATUS_UP_LABEL = i18n.translate('xpack.uptime.monitorList.statusColumn.upLabel', {
|
||||
export const STATUS_UP_LABEL = i18n.translate('xpack.synthetics.monitorList.statusColumn.upLabel', {
|
||||
defaultMessage: 'Up',
|
||||
});
|
||||
|
||||
export const STATUS_DOWN_LABEL = i18n.translate('xpack.uptime.monitorList.statusColumn.downLabel', {
|
||||
defaultMessage: 'Down',
|
||||
});
|
||||
export const STATUS_DOWN_LABEL = i18n.translate(
|
||||
'xpack.synthetics.monitorList.statusColumn.downLabel',
|
||||
{
|
||||
defaultMessage: 'Down',
|
||||
}
|
||||
);
|
||||
|
||||
export const STATUS_COMPLETE_LABEL = i18n.translate(
|
||||
'xpack.uptime.monitorList.statusColumn.completeLabel',
|
||||
'xpack.synthetics.monitorList.statusColumn.completeLabel',
|
||||
{
|
||||
defaultMessage: 'Complete',
|
||||
}
|
||||
);
|
||||
|
||||
export const STATUS_FAILED_LABEL = i18n.translate(
|
||||
'xpack.uptime.monitorList.statusColumn.failedLabel',
|
||||
'xpack.synthetics.monitorList.statusColumn.failedLabel',
|
||||
{
|
||||
defaultMessage: 'Failed',
|
||||
}
|
||||
);
|
||||
|
||||
export const SECONDS_LABEL = i18n.translate('xpack.uptime.seconds.label', {
|
||||
export const SECONDS_LABEL = i18n.translate('xpack.synthetics.seconds.label', {
|
||||
defaultMessage: 'seconds',
|
||||
});
|
||||
|
||||
export const SEC_LABEL = i18n.translate('xpack.uptime.seconds.shortForm.label', {
|
||||
export const SEC_LABEL = i18n.translate('xpack.synthetics.seconds.shortForm.label', {
|
||||
defaultMessage: 'sec',
|
||||
});
|
||||
|
||||
export const MS_LABEL = i18n.translate('xpack.uptime.millisecond.abbreviation.label', {
|
||||
export const MS_LABEL = i18n.translate('xpack.synthetics.millisecond.abbreviation.label', {
|
||||
defaultMessage: 'ms',
|
||||
});
|
||||
|
|
|
@ -57,14 +57,14 @@ export const BrowserAdvancedFields = memo<Props>(
|
|||
title={
|
||||
<h4>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.filtering.title"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.filtering.title"
|
||||
defaultMessage="Selective tests"
|
||||
/>
|
||||
</h4>
|
||||
}
|
||||
description={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.filtering.description"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.filtering.description"
|
||||
defaultMessage="Use these options to apply the selected monitor settings to a subset of the tests in your suite. Only the configured subset will be run by this monitor."
|
||||
/>
|
||||
}
|
||||
|
@ -73,14 +73,14 @@ export const BrowserAdvancedFields = memo<Props>(
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.journeyFiltersMatch.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.journeyFiltersMatch.label"
|
||||
defaultMessage="Filter match"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.journeyFiltersMatch.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.journeyFiltersMatch.helpText"
|
||||
defaultMessage="Run only journeys with a name that matches the provided glob with this monitor."
|
||||
/>
|
||||
}
|
||||
|
@ -100,14 +100,14 @@ export const BrowserAdvancedFields = memo<Props>(
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.journeyFiltersTags.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.journeyFiltersTags.label"
|
||||
defaultMessage="Filter tags"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.journeyFiltersTags.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.journeyFiltersTags.helpText"
|
||||
defaultMessage="Run only journeys with the given tags with this monitor."
|
||||
/>
|
||||
}
|
||||
|
@ -128,14 +128,14 @@ export const BrowserAdvancedFields = memo<Props>(
|
|||
title={
|
||||
<h4>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.title"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.title"
|
||||
defaultMessage="Synthetics agent options"
|
||||
/>
|
||||
</h4>
|
||||
}
|
||||
description={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.description"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.description"
|
||||
defaultMessage="Provide fine-tuned configuration for the synthetics agent."
|
||||
/>
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ export const BrowserAdvancedFields = memo<Props>(
|
|||
helpText={
|
||||
<>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.ignoreHttpsErrors.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.ignoreHttpsErrors.helpText"
|
||||
defaultMessage="Set this option to true to disable TLS/SSL validation in the synthetics browser. This is useful for testing sites that use self-signed certs."
|
||||
/>
|
||||
</>
|
||||
|
@ -157,7 +157,7 @@ export const BrowserAdvancedFields = memo<Props>(
|
|||
checked={fields[ConfigKey.IGNORE_HTTPS_ERRORS]}
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.ignoreHttpsErrors.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.ignoreHttpsErrors.label"
|
||||
defaultMessage="Ignore HTTPS errors"
|
||||
/>
|
||||
}
|
||||
|
@ -174,14 +174,14 @@ export const BrowserAdvancedFields = memo<Props>(
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.screenshots.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.screenshots.label"
|
||||
defaultMessage="Screenshot options"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.screenshots.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.screenshots.helpText"
|
||||
defaultMessage="Set this option to manage the screenshots captured by the synthetics agent."
|
||||
/>
|
||||
}
|
||||
|
@ -202,14 +202,14 @@ export const BrowserAdvancedFields = memo<Props>(
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.syntheticsArgs.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.syntheticsArgs.label"
|
||||
defaultMessage="Synthetics args"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.syntheticsArgs.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.syntheticsArgs.helpText"
|
||||
defaultMessage="Extra arguments to pass to the synthetics agent package. Takes a list of strings. This is useful in rare scenarios, and should not ordinarily need to be set."
|
||||
/>
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ export function ScriptRecorderFields({ onChange, script, fileName }: Props) {
|
|||
<EuiSpacer size="m" />
|
||||
<EuiLink href="https://github.com/elastic/synthetics-recorder/releases/" target="_blank">
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrl.recorderLink"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrl.recorderLink"
|
||||
defaultMessage="Download the Elastic Synthetics Recorder"
|
||||
/>
|
||||
</EuiLink>
|
||||
|
@ -71,7 +71,7 @@ export function ScriptRecorderFields({ onChange, script, fileName }: Props) {
|
|||
iconSide="right"
|
||||
>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrl.showScriptLabel"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrl.showScriptLabel"
|
||||
defaultMessage="Show script"
|
||||
/>
|
||||
</EuiButton>
|
||||
|
@ -85,7 +85,7 @@ export function ScriptRecorderFields({ onChange, script, fileName }: Props) {
|
|||
color="danger"
|
||||
>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrl.removeScriptLabel"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrl.removeScriptLabel"
|
||||
defaultMessage="Remove script"
|
||||
/>
|
||||
</EuiButton>
|
||||
|
@ -120,14 +120,14 @@ export function ScriptRecorderFields({ onChange, script, fileName }: Props) {
|
|||
}
|
||||
|
||||
const PLACEHOLDER_FILE_NAME = i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.scriptRecorder.mockFileName',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.scriptRecorder.mockFileName',
|
||||
{
|
||||
defaultMessage: 'test_script.js',
|
||||
}
|
||||
);
|
||||
|
||||
const CLOSE_BUTTON_LABEL = i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.scriptRecorder.closeButtonLabel',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.scriptRecorder.closeButtonLabel',
|
||||
{
|
||||
defaultMessage: 'Close script flyout',
|
||||
}
|
||||
|
|
|
@ -72,14 +72,14 @@ export const BrowserSimpleFields = memo<Props>(({ validate, onFieldBlur }) => {
|
|||
id="syntheticsFleetScheduleField--number syntheticsFleetScheduleField--unit"
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorInterval"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorInterval"
|
||||
defaultMessage="Frequency"
|
||||
/>
|
||||
}
|
||||
isInvalid={!!validate[ConfigKey.SCHEDULE]?.(fields)}
|
||||
error={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorInterval.error"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorInterval.error"
|
||||
defaultMessage="Monitor frequency is required"
|
||||
/>
|
||||
}
|
||||
|
@ -99,7 +99,7 @@ export const BrowserSimpleFields = memo<Props>(({ validate, onFieldBlur }) => {
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.sourceType.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.sourceType.label"
|
||||
defaultMessage="Source Type"
|
||||
/>
|
||||
}
|
||||
|
|
|
@ -85,7 +85,7 @@ export const SourceField = ({ onChange, onFieldBlur, defaultConfig = defaultValu
|
|||
|
||||
const zipUrlLabel = (
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrl.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrl.label"
|
||||
defaultMessage="Zip URL"
|
||||
/>
|
||||
);
|
||||
|
@ -104,13 +104,13 @@ export const SourceField = ({ onChange, onFieldBlur, defaultConfig = defaultValu
|
|||
isInvalid={!config.zipUrl}
|
||||
error={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrl.error"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrl.error"
|
||||
defaultMessage="Zip URL is required"
|
||||
/>
|
||||
}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrl.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrl.helpText"
|
||||
defaultMessage="Location of the synthetics project repository zip file."
|
||||
/>
|
||||
}
|
||||
|
@ -128,14 +128,14 @@ export const SourceField = ({ onChange, onFieldBlur, defaultConfig = defaultValu
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.brower.proxyURL.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.brower.proxyURL.label"
|
||||
defaultMessage="Proxy Zip URL"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.http.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.http.helpText"
|
||||
defaultMessage="HTTP proxy for Zip URL."
|
||||
/>
|
||||
}
|
||||
|
@ -152,14 +152,14 @@ export const SourceField = ({ onChange, onFieldBlur, defaultConfig = defaultValu
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrlFolder.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrlFolder.label"
|
||||
defaultMessage="Folder"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrlFolder.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrlFolder.helpText"
|
||||
defaultMessage="Relative directory path where the synthetic journey files are located in the repository."
|
||||
/>
|
||||
}
|
||||
|
@ -176,21 +176,21 @@ export const SourceField = ({ onChange, onFieldBlur, defaultConfig = defaultValu
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.params.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.params.label"
|
||||
defaultMessage="Params"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.params.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.params.helpText"
|
||||
defaultMessage="A JSON object that defines any variables your tests require."
|
||||
/>
|
||||
}
|
||||
>
|
||||
<CodeEditor
|
||||
ariaLabel={i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.requestBody.codeEditor.json.ariaLabel',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.requestBody.codeEditor.json.ariaLabel',
|
||||
{
|
||||
defaultMessage: 'JSON code editor',
|
||||
}
|
||||
|
@ -208,14 +208,14 @@ export const SourceField = ({ onChange, onFieldBlur, defaultConfig = defaultValu
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrlUsername.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrlUsername.label"
|
||||
defaultMessage="Zip URL Username"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrlUsername.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrlUsername.helpText"
|
||||
defaultMessage="The username for authenticating with the zip endpoint."
|
||||
/>
|
||||
}
|
||||
|
@ -232,14 +232,14 @@ export const SourceField = ({ onChange, onFieldBlur, defaultConfig = defaultValu
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrlPassword.abel"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrlPassword.abel"
|
||||
defaultMessage="Zip URL Password"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrlPassword.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.zipUrlPassword.helpText"
|
||||
defaultMessage="The password for authenticating with the zip endpoint."
|
||||
/>
|
||||
}
|
||||
|
@ -260,7 +260,7 @@ export const SourceField = ({ onChange, onFieldBlur, defaultConfig = defaultValu
|
|||
id: 'syntheticsBrowserInlineConfig',
|
||||
name: (
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.inlineScript.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.inlineScript.label"
|
||||
defaultMessage="Inline script"
|
||||
/>
|
||||
),
|
||||
|
@ -270,20 +270,20 @@ export const SourceField = ({ onChange, onFieldBlur, defaultConfig = defaultValu
|
|||
isInvalid={!config.inlineScript}
|
||||
error={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.inlineScript.error"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.inlineScript.error"
|
||||
defaultMessage="Script is required"
|
||||
/>
|
||||
}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.inlineScript.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.inlineScript.helpText"
|
||||
defaultMessage="Runs Synthetic test scripts that are defined inline."
|
||||
/>
|
||||
}
|
||||
>
|
||||
<CodeEditor
|
||||
ariaLabel={i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.requestBody.codeEditor.javascript.ariaLabel',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.requestBody.codeEditor.javascript.ariaLabel',
|
||||
{
|
||||
defaultMessage: 'JavaScript code editor',
|
||||
}
|
||||
|
@ -305,21 +305,21 @@ export const SourceField = ({ onChange, onFieldBlur, defaultConfig = defaultValu
|
|||
<EuiFlexGroup responsive={false} alignItems="center" gutterSize="xs">
|
||||
<EuiFlexItem grow={false}>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browser.scriptRecorder.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browser.scriptRecorder.label"
|
||||
defaultMessage="Script recorder"
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
<StyledBetaBadgeWrapper grow={false}>
|
||||
<EuiBetaBadge
|
||||
label={i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.browser.scriptRecorder.experimentalLabel',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.browser.scriptRecorder.experimentalLabel',
|
||||
{
|
||||
defaultMessage: 'Tech preview',
|
||||
}
|
||||
)}
|
||||
iconType="beaker"
|
||||
tooltipContent={i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.browser.scriptRecorder.experimentalTooltip',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.browser.scriptRecorder.experimentalTooltip',
|
||||
{
|
||||
defaultMessage:
|
||||
'Preview the quickest way to create Elastic Synthetics monitoring scripts with our Elastic Synthetics Recorder',
|
||||
|
|
|
@ -38,7 +38,7 @@ export const ThrottlingDisabledCallout = () => {
|
|||
<EuiCallOut
|
||||
title={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.automatic_node_cap.title"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.automatic_node_cap.title"
|
||||
defaultMessage="Automatic cap"
|
||||
/>
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ export const ThrottlingDisabledCallout = () => {
|
|||
iconType="alert"
|
||||
>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.automatic_node_cap.message"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.automatic_node_cap.message"
|
||||
defaultMessage="When disabling throttling, your monitor will still have its bandwidth capped by the configurations of the Synthetics Nodes in which it's running."
|
||||
/>
|
||||
</EuiCallOut>
|
||||
|
@ -58,7 +58,7 @@ export const ThrottlingExceededCallout = () => {
|
|||
<EuiCallOut
|
||||
title={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.exceeded_throttling.title"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.exceeded_throttling.title"
|
||||
defaultMessage="You've exceeded the Synthetics Node bandwidth limits"
|
||||
/>
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ export const ThrottlingExceededCallout = () => {
|
|||
iconType="alert"
|
||||
>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.exceeded_throttling.message"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.exceeded_throttling.message"
|
||||
defaultMessage="When using throttling values larger than a Synthetics Node bandwidth limit, your monitor will still have its bandwidth capped."
|
||||
/>
|
||||
</EuiCallOut>
|
||||
|
@ -82,7 +82,7 @@ export const ThrottlingExceededMessage = ({
|
|||
}) => {
|
||||
return (
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.throttling_exceeded.message"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.throttling_exceeded.message"
|
||||
defaultMessage="You have exceeded the { throttlingField } limit for Synthetic Nodes. The { throttlingField } value can't be larger than { limit }Mbps."
|
||||
values={{ throttlingField, limit }}
|
||||
/>
|
||||
|
@ -115,7 +115,7 @@ export const ThrottlingFields = memo<Props>(({ validate, minColumnWidth, onField
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.download.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.download.label"
|
||||
defaultMessage="Download Speed"
|
||||
/>
|
||||
}
|
||||
|
@ -126,7 +126,7 @@ export const ThrottlingFields = memo<Props>(({ validate, minColumnWidth, onField
|
|||
<ThrottlingExceededMessage throttlingField="download" limit={maxDownload} />
|
||||
) : (
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.download.error"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.download.error"
|
||||
defaultMessage="Download speed must be greater than zero."
|
||||
/>
|
||||
)
|
||||
|
@ -154,7 +154,7 @@ export const ThrottlingFields = memo<Props>(({ validate, minColumnWidth, onField
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.upload.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.upload.label"
|
||||
defaultMessage="Upload Speed"
|
||||
/>
|
||||
}
|
||||
|
@ -165,7 +165,7 @@ export const ThrottlingFields = memo<Props>(({ validate, minColumnWidth, onField
|
|||
<ThrottlingExceededMessage throttlingField="upload" limit={maxUpload} />
|
||||
) : (
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.upload.error"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.upload.error"
|
||||
defaultMessage="Upload speed must be greater than zero."
|
||||
/>
|
||||
)
|
||||
|
@ -193,7 +193,7 @@ export const ThrottlingFields = memo<Props>(({ validate, minColumnWidth, onField
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.latency.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.latency.label"
|
||||
defaultMessage="Latency"
|
||||
/>
|
||||
}
|
||||
|
@ -201,7 +201,7 @@ export const ThrottlingFields = memo<Props>(({ validate, minColumnWidth, onField
|
|||
isInvalid={!!validate[ConfigKey.LATENCY]?.(fields)}
|
||||
error={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.latency.error"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.latency.error"
|
||||
defaultMessage="Latency must not be negative."
|
||||
/>
|
||||
}
|
||||
|
@ -238,14 +238,14 @@ export const ThrottlingFields = memo<Props>(({ validate, minColumnWidth, onField
|
|||
title={
|
||||
<h4>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.title"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.title"
|
||||
defaultMessage="Throttling options"
|
||||
/>
|
||||
</h4>
|
||||
}
|
||||
description={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.description"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.description"
|
||||
defaultMessage="Control the monitor's download and upload speeds, and its latency to simulate your application's behaviour on slower or laggier networks."
|
||||
/>
|
||||
}
|
||||
|
@ -257,7 +257,7 @@ export const ThrottlingFields = memo<Props>(({ validate, minColumnWidth, onField
|
|||
checked={fields[ConfigKey.IS_THROTTLING_ENABLED]}
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.switch.description"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.browserAdvancedSettings.throttling.switch.description"
|
||||
defaultMessage="Enable throttling"
|
||||
/>
|
||||
}
|
||||
|
|
|
@ -63,21 +63,21 @@ export function Uploader({ onUpload }: Props) {
|
|||
}
|
||||
|
||||
const TESTING_SCRIPT_LABEL = i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.uploader.fieldLabel',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.uploader.fieldLabel',
|
||||
{
|
||||
defaultMessage: 'Testing script',
|
||||
}
|
||||
);
|
||||
|
||||
const PROMPT_TEXT = i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.uploader.label',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.uploader.label',
|
||||
{
|
||||
defaultMessage: 'Select recorder-generated .js file',
|
||||
}
|
||||
);
|
||||
|
||||
const INVALID_FILE_ERROR = i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.uploader.invalidFileError',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.uploader.invalidFileError',
|
||||
{
|
||||
defaultMessage:
|
||||
'Invalid file type. Please upload a .js file generated by the Elastic Synthetics Recorder.',
|
||||
|
@ -85,7 +85,7 @@ const INVALID_FILE_ERROR = i18n.translate(
|
|||
);
|
||||
|
||||
const PARSING_ERROR = i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.uploader.parsingError',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browser.uploader.parsingError',
|
||||
{
|
||||
defaultMessage:
|
||||
'Error uploading file. Please upload a .js file generated by the Elastic Synthetics Recorder in inline script format.',
|
||||
|
|
|
@ -62,7 +62,7 @@ export const ZipUrlTLSFields = () => {
|
|||
checked={!!isZipUrlTLSEnabled}
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.certificateSettings.enableZipUrlSSLSettings.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.certificateSettings.enableZipUrlSSLSettings.label"
|
||||
defaultMessage="Enable TLS configuration for Zip URL"
|
||||
/>
|
||||
}
|
||||
|
|
|
@ -45,14 +45,14 @@ export function CommonFields({ fields, onChange, onFieldBlur, validate }: Props)
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.APMServiceName.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.APMServiceName.label"
|
||||
defaultMessage="APM service name"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.APMServiceName.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.APMServiceName.helpText"
|
||||
defaultMessage="APM service name for this monitor. Corresponds to the service.name ECS field. Set this when monitoring an app that is also using APM to enable integrations between Uptime and APM data in Kibana."
|
||||
/>
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ export function CommonFields({ fields, onChange, onFieldBlur, validate }: Props)
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.timeout.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.timeout.label"
|
||||
defaultMessage="Timeout in seconds"
|
||||
/>
|
||||
}
|
||||
|
@ -81,19 +81,19 @@ export function CommonFields({ fields, onChange, onFieldBlur, validate }: Props)
|
|||
error={
|
||||
parseInt(fields[ConfigKey.TIMEOUT] || '', 10) < 0 ? (
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.timeout.moreThanZeroError"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.timeout.moreThanZeroError"
|
||||
defaultMessage="Timeout must be greater than or equal to 0"
|
||||
/>
|
||||
) : (
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.timeout.lessThanIntervalError"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.timeout.lessThanIntervalError"
|
||||
defaultMessage="Timeout must be less than the monitor frequency"
|
||||
/>
|
||||
)
|
||||
}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.timeout.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.timeout.helpText"
|
||||
defaultMessage="The total time allowed for testing the connection and exchanging data."
|
||||
/>
|
||||
}
|
||||
|
@ -115,14 +115,14 @@ export function CommonFields({ fields, onChange, onFieldBlur, validate }: Props)
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.tags.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.tags.label"
|
||||
defaultMessage="Tags"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.tags.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.tags.helpText"
|
||||
defaultMessage="A list of tags that will be sent with the monitor event. Press enter to add a new tag. Displayed in Uptime and enables searching by tag."
|
||||
/>
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ export function Enabled({ fields, onChange, onBlur }: Props) {
|
|||
<EuiFormRow
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.enabled.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.enabled.helpText"
|
||||
defaultMessage="Switch this configuration off to disable the monitor."
|
||||
/>
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ export function Enabled({ fields, onChange, onBlur }: Props) {
|
|||
<EuiSwitch
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.enabled.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.enabled.label"
|
||||
defaultMessage="Enabled"
|
||||
/>
|
||||
}
|
||||
|
|
|
@ -97,7 +97,7 @@ export const TLSOptions: React.FunctionComponent<Props> = memo(
|
|||
<EuiScreenReaderOnly>
|
||||
<span>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.certsField.legend"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.certsField.legend"
|
||||
defaultMessage="Certificate settings"
|
||||
/>
|
||||
</span>
|
||||
|
@ -108,7 +108,7 @@ export const TLSOptions: React.FunctionComponent<Props> = memo(
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.certsField.verificationMode.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.certsField.verificationMode.label"
|
||||
defaultMessage="Verification mode"
|
||||
/>
|
||||
}
|
||||
|
@ -135,7 +135,7 @@ export const TLSOptions: React.FunctionComponent<Props> = memo(
|
|||
<EuiCallOut
|
||||
title={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.certsField.verificationMode.warning.title"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.certsField.verificationMode.warning.title"
|
||||
defaultMessage="Disabling TLS"
|
||||
/>
|
||||
}
|
||||
|
@ -144,7 +144,7 @@ export const TLSOptions: React.FunctionComponent<Props> = memo(
|
|||
>
|
||||
<p>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.certsField.verificationMode.warning.description"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.certsField.verificationMode.warning.description"
|
||||
defaultMessage="This mode disables many of the security benefits of SSL/TLS and should only be used
|
||||
after cautious consideration."
|
||||
/>
|
||||
|
@ -156,7 +156,7 @@ export const TLSOptions: React.FunctionComponent<Props> = memo(
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.certsField.version.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.certsField.version.label"
|
||||
defaultMessage="Supported TLS protocols"
|
||||
/>
|
||||
}
|
||||
|
@ -165,7 +165,7 @@ export const TLSOptions: React.FunctionComponent<Props> = memo(
|
|||
>
|
||||
<EuiComboBox
|
||||
placeholder={i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.certsField.version.placeholder',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.certsField.version.placeholder',
|
||||
{
|
||||
defaultMessage: 'Select one or more TLS protocols.',
|
||||
}
|
||||
|
@ -183,13 +183,13 @@ export const TLSOptions: React.FunctionComponent<Props> = memo(
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.certsField.certificateAuthorities.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.certsField.certificateAuthorities.label"
|
||||
defaultMessage="Certificate authorities"
|
||||
/>
|
||||
}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.certsField.certificateAuthorities.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.certsField.certificateAuthorities.helpText"
|
||||
defaultMessage="PEM formatted custom certificate authorities."
|
||||
/>
|
||||
}
|
||||
|
@ -219,14 +219,14 @@ export const TLSOptions: React.FunctionComponent<Props> = memo(
|
|||
<>
|
||||
{tlsRoleLabels[tlsRole]}{' '}
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.certsField.certificate.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.certsField.certificate.label"
|
||||
defaultMessage="certificate"
|
||||
/>
|
||||
</>
|
||||
}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.certsField.certificate.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.certsField.certificate.helpText"
|
||||
defaultMessage="PEM formatted certificate for TLS client authentication."
|
||||
/>
|
||||
}
|
||||
|
@ -256,14 +256,14 @@ export const TLSOptions: React.FunctionComponent<Props> = memo(
|
|||
<>
|
||||
{tlsRoleLabels[tlsRole]}{' '}
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.certsField.certificateKey.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.certsField.certificateKey.label"
|
||||
defaultMessage="key"
|
||||
/>
|
||||
</>
|
||||
}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.certsField.certificateKey.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.certsField.certificateKey.helpText"
|
||||
defaultMessage="PEM formatted certificate key for TLS client authentication."
|
||||
/>
|
||||
}
|
||||
|
@ -293,14 +293,14 @@ export const TLSOptions: React.FunctionComponent<Props> = memo(
|
|||
<>
|
||||
{tlsRoleLabels[tlsRole]}{' '}
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.certsField.certificateKeyPassphrase.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.certsField.certificateKeyPassphrase.label"
|
||||
defaultMessage="key passphrase"
|
||||
/>
|
||||
</>
|
||||
}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.certsField.certificateKeyPassphrase.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.certsField.certificateKeyPassphrase.helpText"
|
||||
defaultMessage="Certificate key passphrase for TLS client authentication."
|
||||
/>
|
||||
}
|
||||
|
@ -326,13 +326,13 @@ export const TLSOptions: React.FunctionComponent<Props> = memo(
|
|||
const tlsRoleLabels = {
|
||||
client: (
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.certsField.tlsRole.client"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.certsField.tlsRole.client"
|
||||
defaultMessage="Client"
|
||||
/>
|
||||
),
|
||||
server: (
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.certsField.tlsRole.server"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.certsField.tlsRole.server"
|
||||
defaultMessage="Server"
|
||||
/>
|
||||
),
|
||||
|
@ -340,28 +340,28 @@ const tlsRoleLabels = {
|
|||
|
||||
const verificationModeHelpText = {
|
||||
[VerificationMode.CERTIFICATE]: i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.certsField.verificationMode.certificate.description',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.certsField.verificationMode.certificate.description',
|
||||
{
|
||||
defaultMessage:
|
||||
'Verifies that the provided certificate is signed by a trusted authority (CA), but does not perform any hostname verification.',
|
||||
}
|
||||
),
|
||||
[VerificationMode.FULL]: i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.certsField.verificationMode.full.description',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.certsField.verificationMode.full.description',
|
||||
{
|
||||
defaultMessage:
|
||||
'Verifies that the provided certificate is signed by a trusted authority (CA) and also verifies that the server’s hostname (or IP address) matches the names identified within the certificate.',
|
||||
}
|
||||
),
|
||||
[VerificationMode.NONE]: i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.certsField.verificationMode.none.description',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.certsField.verificationMode.none.description',
|
||||
{
|
||||
defaultMessage:
|
||||
'Performs no verification of the server’s certificate. It is primarily intended as a temporary diagnostic mechanism when attempting to resolve TLS errors; its use in production environments is strongly discouraged.',
|
||||
}
|
||||
),
|
||||
[VerificationMode.STRICT]: i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.certsField.verificationMode.strict.description',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.certsField.verificationMode.strict.description',
|
||||
{
|
||||
defaultMessage:
|
||||
'Verifies that the provided certificate is signed by a trusted authority (CA) and also verifies that the server’s hostname (or IP address) matches the names identified within the certificate. If the Subject Alternative Name is empty, it returns an error.',
|
||||
|
@ -371,25 +371,25 @@ const verificationModeHelpText = {
|
|||
|
||||
const verificationModeLabels = {
|
||||
[VerificationMode.CERTIFICATE]: i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.certsField.verificationMode.certificate.label',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.certsField.verificationMode.certificate.label',
|
||||
{
|
||||
defaultMessage: 'Certificate',
|
||||
}
|
||||
),
|
||||
[VerificationMode.FULL]: i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.certsField.verificationMode.full.label',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.certsField.verificationMode.full.label',
|
||||
{
|
||||
defaultMessage: 'Full',
|
||||
}
|
||||
),
|
||||
[VerificationMode.NONE]: i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.certsField.verificationMode.none.label',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.certsField.verificationMode.none.label',
|
||||
{
|
||||
defaultMessage: 'None',
|
||||
}
|
||||
),
|
||||
[VerificationMode.STRICT]: i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.certsField.verificationMode.strict.label',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.certsField.verificationMode.strict.label',
|
||||
{
|
||||
defaultMessage: 'Strict',
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ const dataStreamToString = [
|
|||
{
|
||||
value: DataStream.BROWSER,
|
||||
text: i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browserLabel',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.browserLabel',
|
||||
{
|
||||
defaultMessage: 'Browser (Beta)',
|
||||
}
|
||||
|
@ -104,14 +104,14 @@ export const CustomFields = memo<Props>(
|
|||
title={
|
||||
<h4>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSectionTitle"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSectionTitle"
|
||||
defaultMessage="Monitor settings"
|
||||
/>
|
||||
</h4>
|
||||
}
|
||||
description={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSectionDescription"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSectionDescription"
|
||||
defaultMessage="Configure your monitor with the following options."
|
||||
/>
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ export const CustomFields = memo<Props>(
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorType"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorType"
|
||||
defaultMessage="Monitor Type"
|
||||
/>
|
||||
}
|
||||
|
@ -135,7 +135,7 @@ export const CustomFields = memo<Props>(
|
|||
}
|
||||
error={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorType.error"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorType.error"
|
||||
defaultMessage="Monitor type is required"
|
||||
/>
|
||||
}
|
||||
|
@ -154,7 +154,7 @@ export const CustomFields = memo<Props>(
|
|||
<EuiCallOut
|
||||
title={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorType.browser.warning.description"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorType.browser.warning.description"
|
||||
defaultMessage='To create a "Browser" monitor, please ensure you are using the elastic-agent-complete Docker container, which contains the dependencies to run these monitors. For more information, please visit our {link}.'
|
||||
values={{
|
||||
link: (
|
||||
|
@ -164,7 +164,7 @@ export const CustomFields = memo<Props>(
|
|||
external
|
||||
>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorType.browser.warning.link"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorType.browser.warning.link"
|
||||
defaultMessage="synthetics documentation"
|
||||
/>
|
||||
</EuiLink>
|
||||
|
@ -187,14 +187,14 @@ export const CustomFields = memo<Props>(
|
|||
title={
|
||||
<h4>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.tlsSettings.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.tlsSettings.label"
|
||||
defaultMessage="TLS settings"
|
||||
/>
|
||||
</h4>
|
||||
}
|
||||
description={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.tlsSettings.description"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.tlsSettings.description"
|
||||
defaultMessage="Configure TLS options, including verification mode, certificate authorities, and client certificates."
|
||||
/>
|
||||
}
|
||||
|
@ -206,7 +206,7 @@ export const CustomFields = memo<Props>(
|
|||
checked={!!isTLSEnabled}
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.certificateSettings.enableSSLSettings.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.certificateSettings.enableSSLSettings.label"
|
||||
defaultMessage="Enable TLS configuration"
|
||||
/>
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ export const HeaderField = ({
|
|||
<KeyValuePairsField
|
||||
addPairControlLabel={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.headerField.addHeader.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.headerField.addHeader.label"
|
||||
defaultMessage="Add header"
|
||||
/>
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ export const HTTPAdvancedFields = memo<Props>(
|
|||
id="uptimeFleetHttpAdvancedOptions"
|
||||
buttonContent={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions"
|
||||
defaultMessage="Advanced HTTP options"
|
||||
/>
|
||||
}
|
||||
|
@ -64,14 +64,14 @@ export const HTTPAdvancedFields = memo<Props>(
|
|||
title={
|
||||
<h4>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.requestConfiguration.title"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.requestConfiguration.title"
|
||||
defaultMessage="Request configuration"
|
||||
/>
|
||||
</h4>
|
||||
}
|
||||
description={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.requestConfiguration.description"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.requestConfiguration.description"
|
||||
defaultMessage="Configure an optional request to send to the remote host including method, body, and headers."
|
||||
/>
|
||||
}
|
||||
|
@ -81,14 +81,14 @@ export const HTTPAdvancedFields = memo<Props>(
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.username.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.username.label"
|
||||
defaultMessage="Username"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.username.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.username.helpText"
|
||||
defaultMessage="Username for authenticating with the server."
|
||||
/>
|
||||
}
|
||||
|
@ -108,14 +108,14 @@ export const HTTPAdvancedFields = memo<Props>(
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.password.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.password.label"
|
||||
defaultMessage="Password"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.password.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.password.helpText"
|
||||
defaultMessage="Password for authenticating with the server."
|
||||
/>
|
||||
}
|
||||
|
@ -135,14 +135,14 @@ export const HTTPAdvancedFields = memo<Props>(
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.proxyURL.http.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.proxyURL.http.label"
|
||||
defaultMessage="Proxy URL"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.proxyUrl.http.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.proxyUrl.http.helpText"
|
||||
defaultMessage="HTTP proxy URL."
|
||||
/>
|
||||
}
|
||||
|
@ -162,13 +162,13 @@ export const HTTPAdvancedFields = memo<Props>(
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.requestConfiguration.requestMethod.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.requestConfiguration.requestMethod.label"
|
||||
defaultMessage="Request method"
|
||||
/>
|
||||
}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.requestMethod.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.requestMethod.helpText"
|
||||
defaultMessage="The HTTP method to use."
|
||||
/>
|
||||
}
|
||||
|
@ -190,7 +190,7 @@ export const HTTPAdvancedFields = memo<Props>(
|
|||
fullWidth
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.requestConfiguration.requestHeaders"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.requestConfiguration.requestHeaders"
|
||||
defaultMessage="Request headers"
|
||||
/>
|
||||
}
|
||||
|
@ -198,13 +198,13 @@ export const HTTPAdvancedFields = memo<Props>(
|
|||
isInvalid={!!validate[ConfigKey.REQUEST_HEADERS_CHECK]?.(fields)}
|
||||
error={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.requestHeadersField.error"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.requestHeadersField.error"
|
||||
defaultMessage="Header key must be a valid HTTP token."
|
||||
/>
|
||||
}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.requestHeadersField.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.requestHeadersField.helpText"
|
||||
defaultMessage="A dictionary of additional HTTP headers to send. By default the client will set the User-Agent header to identify itself."
|
||||
/>
|
||||
}
|
||||
|
@ -231,14 +231,14 @@ export const HTTPAdvancedFields = memo<Props>(
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.requestConfiguration.requestBody"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.requestConfiguration.requestBody"
|
||||
defaultMessage="Request body"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.requestBody.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.requestBody.helpText"
|
||||
defaultMessage="Request body content."
|
||||
/>
|
||||
}
|
||||
|
@ -265,14 +265,14 @@ export const HTTPAdvancedFields = memo<Props>(
|
|||
title={
|
||||
<h4>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseConfiguration.title"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseConfiguration.title"
|
||||
defaultMessage="Response configuration"
|
||||
/>
|
||||
</h4>
|
||||
}
|
||||
description={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseConfiguration.description"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseConfiguration.description"
|
||||
defaultMessage="Control the indexing of the HTTP response contents."
|
||||
/>
|
||||
}
|
||||
|
@ -282,7 +282,7 @@ export const HTTPAdvancedFields = memo<Props>(
|
|||
helpText={
|
||||
<>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.indexResponseHeaders.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.indexResponseHeaders.helpText"
|
||||
defaultMessage="Controls the indexing of the HTTP response headers to "
|
||||
/>
|
||||
<EuiCode>http.response.body.headers</EuiCode>
|
||||
|
@ -295,7 +295,7 @@ export const HTTPAdvancedFields = memo<Props>(
|
|||
checked={fields[ConfigKey.RESPONSE_HEADERS_INDEX]}
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseConfig.indexResponseHeaders"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseConfig.indexResponseHeaders"
|
||||
defaultMessage="Index response headers"
|
||||
/>
|
||||
}
|
||||
|
@ -312,7 +312,7 @@ export const HTTPAdvancedFields = memo<Props>(
|
|||
helpText={
|
||||
<>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.indexResponseBody.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.indexResponseBody.helpText"
|
||||
defaultMessage="Controls the indexing of the HTTP response body contents to "
|
||||
/>
|
||||
<EuiCode>http.response.body.contents</EuiCode>
|
||||
|
@ -335,14 +335,14 @@ export const HTTPAdvancedFields = memo<Props>(
|
|||
title={
|
||||
<h4>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseChecks.title"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseChecks.title"
|
||||
defaultMessage="Response checks"
|
||||
/>
|
||||
</h4>
|
||||
}
|
||||
description={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseChecks.description"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseChecks.description"
|
||||
defaultMessage="Configure the expected HTTP response."
|
||||
/>
|
||||
}
|
||||
|
@ -350,7 +350,7 @@ export const HTTPAdvancedFields = memo<Props>(
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseChecks.responseStatusCheck.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseChecks.responseStatusCheck.label"
|
||||
defaultMessage="Check response status equals"
|
||||
/>
|
||||
}
|
||||
|
@ -358,12 +358,12 @@ export const HTTPAdvancedFields = memo<Props>(
|
|||
isInvalid={!!validate[ConfigKey.RESPONSE_STATUS_CHECK]?.(fields)}
|
||||
error={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseChecks.responseStatusCheck.error"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseChecks.responseStatusCheck.error"
|
||||
defaultMessage="Status code must contain digits only."
|
||||
/>
|
||||
}
|
||||
helpText={i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseChecks.responseStatusCheck.helpText',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseChecks.responseStatusCheck.helpText',
|
||||
{
|
||||
defaultMessage:
|
||||
'A list of expected status codes. Press enter to add a new code. 4xx and 5xx codes are considered down by default. Other codes are considered up.',
|
||||
|
@ -386,7 +386,7 @@ export const HTTPAdvancedFields = memo<Props>(
|
|||
fullWidth
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseChecks.checkResponseHeadersContain"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseChecks.checkResponseHeadersContain"
|
||||
defaultMessage="Check response headers contain"
|
||||
/>
|
||||
}
|
||||
|
@ -394,13 +394,13 @@ export const HTTPAdvancedFields = memo<Props>(
|
|||
isInvalid={!!validate[ConfigKey.RESPONSE_HEADERS_CHECK]?.(fields)}
|
||||
error={[
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseHeadersField.error"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseHeadersField.error"
|
||||
defaultMessage="Header key must be a valid HTTP token."
|
||||
/>,
|
||||
]}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseHeadersField.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseHeadersField.helpText"
|
||||
defaultMessage="A list of expected response headers."
|
||||
/>
|
||||
}
|
||||
|
@ -422,13 +422,13 @@ export const HTTPAdvancedFields = memo<Props>(
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseCheckPositive.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseCheckPositive.label"
|
||||
defaultMessage="Check response body contains"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseBodyCheckPositive.helpText',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseBodyCheckPositive.helpText',
|
||||
{
|
||||
defaultMessage:
|
||||
'A list of regular expressions to match the body output. Press enter to add a new expression. Only a single expression needs to match.',
|
||||
|
@ -452,13 +452,13 @@ export const HTTPAdvancedFields = memo<Props>(
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseCheckNegative.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseCheckNegative.label"
|
||||
defaultMessage="Check response body does not contain"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseBodyCheckNegative.helpText',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseBodyCheckNegative.helpText',
|
||||
{
|
||||
defaultMessage:
|
||||
'A list of regular expressions to match the the body output negatively. Press enter to add a new expression. Return match failed if single expression matches.',
|
||||
|
|
|
@ -38,14 +38,14 @@ export const HTTPSimpleFields = memo<Props>(({ validate, onFieldBlur }) => {
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.URL"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.URL"
|
||||
defaultMessage="URL"
|
||||
/>
|
||||
}
|
||||
isInvalid={!!validate[ConfigKey.URLS]?.(fields)}
|
||||
error={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.URL.error"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.URL.error"
|
||||
defaultMessage="URL is required"
|
||||
/>
|
||||
}
|
||||
|
@ -63,14 +63,14 @@ export const HTTPSimpleFields = memo<Props>(({ validate, onFieldBlur }) => {
|
|||
id="syntheticsFleetScheduleField"
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorInterval"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorInterval"
|
||||
defaultMessage="Frequency"
|
||||
/>
|
||||
}
|
||||
isInvalid={!!validate[ConfigKey.SCHEDULE]?.(fields)}
|
||||
error={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorInterval.error"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorInterval.error"
|
||||
defaultMessage="Monitor frequency is required"
|
||||
/>
|
||||
}
|
||||
|
@ -90,21 +90,21 @@ export const HTTPSimpleFields = memo<Props>(({ validate, onFieldBlur }) => {
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.maxRedirects"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.maxRedirects"
|
||||
defaultMessage="Max redirects"
|
||||
/>
|
||||
}
|
||||
isInvalid={!!validate[ConfigKey.MAX_REDIRECTS]?.(fields)}
|
||||
error={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.maxRedirects.error"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.maxRedirects.error"
|
||||
defaultMessage="Max redirects must be 0 or greater"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.maxRedirects.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.maxRedirects.helpText"
|
||||
defaultMessage="The total number of redirections to follow."
|
||||
/>
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ export const ICMPAdvancedFields = ({ children }: { children?: React.ReactNode })
|
|||
id="uptimeFleetIcmpAdvancedOptions"
|
||||
buttonContent={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.icmpAdvancedOptions"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.icmpAdvancedOptions"
|
||||
defaultMessage="Advanced ICMP options"
|
||||
/>
|
||||
}
|
||||
|
|
|
@ -38,14 +38,14 @@ export const ICMPSimpleFields = memo<Props>(({ validate, onFieldBlur }) => {
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.icmp.hosts"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.icmp.hosts"
|
||||
defaultMessage="Host"
|
||||
/>
|
||||
}
|
||||
isInvalid={!!validate[ConfigKey.HOSTS]?.(fields)}
|
||||
error={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.icmp.hosts.error"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.icmp.hosts.error"
|
||||
defaultMessage="Host is required"
|
||||
/>
|
||||
}
|
||||
|
@ -66,14 +66,14 @@ export const ICMPSimpleFields = memo<Props>(({ validate, onFieldBlur }) => {
|
|||
id="syntheticsFleetScheduleField--number syntheticsFleetScheduleField--unit"
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorInterval"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorInterval"
|
||||
defaultMessage="Frequency"
|
||||
/>
|
||||
}
|
||||
isInvalid={!!validate[ConfigKey.SCHEDULE]?.(fields)}
|
||||
error={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorInterval.error"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorInterval.error"
|
||||
defaultMessage="Monitor frequency is required"
|
||||
/>
|
||||
}
|
||||
|
@ -93,21 +93,21 @@ export const ICMPSimpleFields = memo<Props>(({ validate, onFieldBlur }) => {
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.wait.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.wait.label"
|
||||
defaultMessage="Wait in seconds"
|
||||
/>
|
||||
}
|
||||
isInvalid={!!validate[ConfigKey.WAIT]?.(fields)}
|
||||
error={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.wait.error"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.wait.error"
|
||||
defaultMessage="Wait must be 0 or greater"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.wait.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.wait.helpText"
|
||||
defaultMessage="The duration to wait before emitting another ICMP Echo Request if no response is received."
|
||||
/>
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ export const ResponseBodyIndexField = ({ defaultValue, onChange, onBlur }: Props
|
|||
checked={checked}
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseConfig.indexResponseBody"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseConfig.indexResponseBody"
|
||||
defaultMessage="Index response body"
|
||||
/>
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ export const ResponseBodyIndexField = ({ defaultValue, onChange, onBlur }: Props
|
|||
<EuiFlexItem>
|
||||
<EuiSelect
|
||||
aria-label={i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseConfig.responseBodyIndexPolicy',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.httpAdvancedOptions.responseConfig.responseBodyIndexPolicy',
|
||||
{
|
||||
defaultMessage: 'Response body index policy',
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ const responseBodyIndexPolicyOptions = [
|
|||
{
|
||||
value: ResponseBodyIndexPolicy.ALWAYS,
|
||||
text: i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.responseBodyIndex.always',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.responseBodyIndex.always',
|
||||
{
|
||||
defaultMessage: 'Always',
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ const responseBodyIndexPolicyOptions = [
|
|||
{
|
||||
value: ResponseBodyIndexPolicy.ON_ERROR,
|
||||
text: i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.responseBodyIndex.onError',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.responseBodyIndex.onError',
|
||||
{
|
||||
defaultMessage: 'On error',
|
||||
}
|
||||
|
|
|
@ -120,7 +120,7 @@ export const KeyValuePairsField = ({
|
|||
<EuiFlexItem>
|
||||
{
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.keyValuePairsField.key.label"
|
||||
id="xpack.synthetics.keyValuePairsField.key.label"
|
||||
defaultMessage="Key"
|
||||
/>
|
||||
}
|
||||
|
@ -128,7 +128,7 @@ export const KeyValuePairsField = ({
|
|||
<EuiFlexItem>
|
||||
{
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.keyValuePairsField.value.label"
|
||||
id="xpack.synthetics.keyValuePairsField.value.label"
|
||||
defaultMessage="Value"
|
||||
/>
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ export const KeyValuePairsField = ({
|
|||
<EuiButtonIcon
|
||||
iconType="trash"
|
||||
aria-label={i18n.translate(
|
||||
'xpack.uptime.keyValuePairsField.deleteItem.label',
|
||||
'xpack.synthetics.keyValuePairsField.deleteItem.label',
|
||||
{
|
||||
defaultMessage: 'Delete item number {index}, {key}:{value}',
|
||||
values: { index: index + 1, key, value },
|
||||
|
@ -163,9 +163,12 @@ export const KeyValuePairsField = ({
|
|||
}
|
||||
startControl={
|
||||
<StyledField
|
||||
aria-label={i18n.translate('xpack.uptime.keyValuePairsField.key.ariaLabel', {
|
||||
defaultMessage: 'Key',
|
||||
})}
|
||||
aria-label={i18n.translate(
|
||||
'xpack.synthetics.keyValuePairsField.key.ariaLabel',
|
||||
{
|
||||
defaultMessage: 'Key',
|
||||
}
|
||||
)}
|
||||
data-test-subj={`keyValuePairsKey${index}`}
|
||||
value={key}
|
||||
onChange={(event) => handleOnChange(event, index, true)}
|
||||
|
@ -174,9 +177,12 @@ export const KeyValuePairsField = ({
|
|||
}
|
||||
endControl={
|
||||
<StyledField
|
||||
aria-label={i18n.translate('xpack.uptime.keyValuePairsField.value.ariaLabel', {
|
||||
defaultMessage: 'Value',
|
||||
})}
|
||||
aria-label={i18n.translate(
|
||||
'xpack.synthetics.keyValuePairsField.value.ariaLabel',
|
||||
{
|
||||
defaultMessage: 'Value',
|
||||
}
|
||||
)}
|
||||
data-test-subj={`keyValuePairsValue${index}`}
|
||||
value={value}
|
||||
onChange={(event) => handleOnChange(event, index, false)}
|
||||
|
|
|
@ -12,7 +12,7 @@ export const OptionalLabel = () => {
|
|||
return (
|
||||
<EuiText size="xs" color="subdued">
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.inputVarFieldOptionalLabel"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.inputVarFieldOptionalLabel"
|
||||
defaultMessage="Optional"
|
||||
/>
|
||||
</EuiText>
|
||||
|
|
|
@ -87,7 +87,7 @@ export const RequestBodyField = ({ onChange, onBlur, type, value }: Props) => {
|
|||
content: (
|
||||
<CodeEditor
|
||||
ariaLabel={i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.requestBody.codeEditor.text.ariaLabel',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.requestBody.codeEditor.text.ariaLabel',
|
||||
{
|
||||
defaultMessage: 'Text code editor',
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ export const RequestBodyField = ({ onChange, onBlur, type, value }: Props) => {
|
|||
content: (
|
||||
<CodeEditor
|
||||
ariaLabel={i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.requestBody.codeEditor.json.ariaLabel',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.requestBody.codeEditor.json.ariaLabel',
|
||||
{
|
||||
defaultMessage: 'JSON code editor',
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ export const RequestBodyField = ({ onChange, onBlur, type, value }: Props) => {
|
|||
content: (
|
||||
<CodeEditor
|
||||
ariaLabel={i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.requestBody.codeEditor.xml.ariaLabel',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.requestBody.codeEditor.xml.ariaLabel',
|
||||
{
|
||||
defaultMessage: 'XML code editor',
|
||||
}
|
||||
|
@ -154,7 +154,7 @@ export const RequestBodyField = ({ onChange, onBlur, type, value }: Props) => {
|
|||
<KeyValuePairsField
|
||||
addPairControlLabel={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.requestBody.formField.addFormField.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.requestBody.formField.addFormField.label"
|
||||
defaultMessage="Add form field"
|
||||
/>
|
||||
}
|
||||
|
@ -180,24 +180,27 @@ export const RequestBodyField = ({ onChange, onBlur, type, value }: Props) => {
|
|||
|
||||
const modeLabels = {
|
||||
[Mode.FORM]: i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.requestBodyType.form',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.requestBodyType.form',
|
||||
{
|
||||
defaultMessage: 'Form',
|
||||
}
|
||||
),
|
||||
[Mode.PLAINTEXT]: i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.requestBodyType.text',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.requestBodyType.text',
|
||||
{
|
||||
defaultMessage: 'Text',
|
||||
}
|
||||
),
|
||||
[Mode.JSON]: i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.requestBodyType.JSON',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.requestBodyType.JSON',
|
||||
{
|
||||
defaultMessage: 'JSON',
|
||||
}
|
||||
),
|
||||
[Mode.XML]: i18n.translate('xpack.uptime.createPackagePolicy.stepConfigure.requestBodyType.XML', {
|
||||
defaultMessage: 'XML',
|
||||
}),
|
||||
[Mode.XML]: i18n.translate(
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.requestBodyType.XML',
|
||||
{
|
||||
defaultMessage: 'XML',
|
||||
}
|
||||
),
|
||||
};
|
||||
|
|
|
@ -32,7 +32,7 @@ export const ScheduleField = ({ number, onChange, onBlur, unit }: Props) => {
|
|||
<EuiFlexItem>
|
||||
<EuiFieldNumber
|
||||
aria-label={i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.scheduleField.number',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.scheduleField.number',
|
||||
{
|
||||
defaultMessage: 'Number',
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ export const ScheduleField = ({ number, onChange, onBlur, unit }: Props) => {
|
|||
<EuiFlexItem>
|
||||
<EuiSelect
|
||||
aria-label={i18n.translate(
|
||||
'xpack.uptime.createPackagePolicy.stepConfigure.scheduleField.unit',
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.scheduleField.unit',
|
||||
{
|
||||
defaultMessage: 'Unit',
|
||||
}
|
||||
|
@ -82,15 +82,21 @@ export const ScheduleField = ({ number, onChange, onBlur, unit }: Props) => {
|
|||
|
||||
const allOptions = [
|
||||
{
|
||||
text: i18n.translate('xpack.uptime.createPackagePolicy.stepConfigure.scheduleField.seconds', {
|
||||
defaultMessage: 'Seconds',
|
||||
}),
|
||||
text: i18n.translate(
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.scheduleField.seconds',
|
||||
{
|
||||
defaultMessage: 'Seconds',
|
||||
}
|
||||
),
|
||||
value: ScheduleUnit.SECONDS,
|
||||
},
|
||||
{
|
||||
text: i18n.translate('xpack.uptime.createPackagePolicy.stepConfigure.scheduleField.minutes', {
|
||||
defaultMessage: 'Minutes',
|
||||
}),
|
||||
text: i18n.translate(
|
||||
'xpack.synthetics.createPackagePolicy.stepConfigure.scheduleField.minutes',
|
||||
{
|
||||
defaultMessage: 'Minutes',
|
||||
}
|
||||
),
|
||||
value: ScheduleUnit.MINUTES,
|
||||
},
|
||||
];
|
||||
|
|
|
@ -21,11 +21,11 @@ export const SyntheticsCustomAssetsExtension: PackageAssetsComponent = () => {
|
|||
const { http } = useKibana<ClientPluginsStart>().services;
|
||||
const views: CustomAssetsAccordionProps['views'] = [
|
||||
{
|
||||
name: i18n.translate('xpack.uptime.fleetIntegration.assets.name', {
|
||||
name: i18n.translate('xpack.synthetics.fleetIntegration.assets.name', {
|
||||
defaultMessage: 'Monitors',
|
||||
}),
|
||||
url: http?.basePath.prepend(`/app/${PLUGIN.ID}`) ?? '',
|
||||
description: i18n.translate('xpack.uptime.fleetIntegration.assets.description', {
|
||||
description: i18n.translate('xpack.synthetics.fleetIntegration.assets.description', {
|
||||
defaultMessage: 'View monitors in Uptime',
|
||||
}),
|
||||
},
|
||||
|
|
|
@ -44,14 +44,14 @@ export const TCPAdvancedFields = memo<Props>(({ children, minColumnWidth, onFiel
|
|||
title={
|
||||
<h4>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.tcpAdvacnedSettings.requestConfiguration.title"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.tcpAdvacnedSettings.requestConfiguration.title"
|
||||
defaultMessage="Request configuration"
|
||||
/>
|
||||
</h4>
|
||||
}
|
||||
description={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.tcpAdvacnedSettings.requestConfiguration.description"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.tcpAdvacnedSettings.requestConfiguration.description"
|
||||
defaultMessage="Configure the payload sent to the remote host."
|
||||
/>
|
||||
}
|
||||
|
@ -60,14 +60,14 @@ export const TCPAdvancedFields = memo<Props>(({ children, minColumnWidth, onFiel
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.proxyURL.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.proxyURL.label"
|
||||
defaultMessage="Proxy URL"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.proxyUrl.tcp.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.proxyUrl.tcp.helpText"
|
||||
defaultMessage="The URL of the SOCKS5 proxy to use when connecting to the server. The value must be a URL with a scheme of socks5://."
|
||||
/>
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ export const TCPAdvancedFields = memo<Props>(({ children, minColumnWidth, onFiel
|
|||
checked={fields[ConfigKey.PROXY_USE_LOCAL_RESOLVER]}
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.resolveHostnamesLocally"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.resolveHostnamesLocally"
|
||||
defaultMessage="Resolve hostnames locally"
|
||||
/>
|
||||
}
|
||||
|
@ -107,14 +107,14 @@ export const TCPAdvancedFields = memo<Props>(({ children, minColumnWidth, onFiel
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.tcpAdvacnedSettings.requestConfiguration.requestPayload.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.tcpAdvacnedSettings.requestConfiguration.requestPayload.label"
|
||||
defaultMessage="Request payload"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.tcpAdvacnedSettings.requestConfiguration.requestPayload.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.tcpAdvacnedSettings.requestConfiguration.requestPayload.helpText"
|
||||
defaultMessage="A payload string to send to the remote host."
|
||||
/>
|
||||
}
|
||||
|
@ -139,14 +139,14 @@ export const TCPAdvancedFields = memo<Props>(({ children, minColumnWidth, onFiel
|
|||
title={
|
||||
<h4>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.tcpAdvancedOptions.responseConfiguration.title"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.tcpAdvancedOptions.responseConfiguration.title"
|
||||
defaultMessage="Response checks"
|
||||
/>
|
||||
</h4>
|
||||
}
|
||||
description={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.tcpAdvancedOptions.responseConfiguration.description"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.tcpAdvancedOptions.responseConfiguration.description"
|
||||
defaultMessage="Configure the expected response from the remote host."
|
||||
/>
|
||||
}
|
||||
|
@ -154,14 +154,14 @@ export const TCPAdvancedFields = memo<Props>(({ children, minColumnWidth, onFiel
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.tcpAdvacnedSettings.responseConfiguration.responseContains.label"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.tcpAdvacnedSettings.responseConfiguration.responseContains.label"
|
||||
defaultMessage="Check response contains"
|
||||
/>
|
||||
}
|
||||
labelAppend={<OptionalLabel />}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.tcpAdvacnedSettings.responseConfiguration.responseContains.helpText"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.tcpAdvacnedSettings.responseConfiguration.responseContains.helpText"
|
||||
defaultMessage="The expected remote host response."
|
||||
/>
|
||||
}
|
||||
|
|
|
@ -37,14 +37,14 @@ export const TCPSimpleFields = memo<Props>(({ validate, onFieldBlur }) => {
|
|||
<EuiFormRow
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.tcp.hosts"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.tcp.hosts"
|
||||
defaultMessage="Host:Port"
|
||||
/>
|
||||
}
|
||||
isInvalid={!!validate[ConfigKey.HOSTS]?.(fields)}
|
||||
error={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.tcp.hosts.error"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.tcp.hosts.error"
|
||||
defaultMessage="Host and port are required"
|
||||
/>
|
||||
}
|
||||
|
@ -66,14 +66,14 @@ export const TCPSimpleFields = memo<Props>(({ validate, onFieldBlur }) => {
|
|||
id="syntheticsFleetScheduleField--number syntheticsFleetScheduleField--unit"
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorInterval"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorInterval"
|
||||
defaultMessage="Frequency"
|
||||
/>
|
||||
}
|
||||
isInvalid={!!validate[ConfigKey.SCHEDULE]?.(fields)}
|
||||
error={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorInterval.error"
|
||||
id="xpack.synthetics.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorInterval.error"
|
||||
defaultMessage="Monitor frequency is required"
|
||||
/>
|
||||
}
|
||||
|
|
|
@ -14,14 +14,14 @@ exports[`ML Confirm Job Delete shallow renders without errors 1`] = `
|
|||
<p>
|
||||
<FormattedMessage
|
||||
defaultMessage="Are you sure you want to delete this job?"
|
||||
id="xpack.uptime.monitorDetails.ml.confirmDeleteMessage"
|
||||
id="xpack.synthetics.monitorDetails.ml.confirmDeleteMessage"
|
||||
values={Object {}}
|
||||
/>
|
||||
</p>
|
||||
<p>
|
||||
<FormattedMessage
|
||||
defaultMessage="Deleting a job can be time consuming. It will be deleted in the background and data may not disappear instantly."
|
||||
id="xpack.uptime.monitorDetails.ml.deleteJobWarning"
|
||||
id="xpack.synthetics.monitorDetails.ml.deleteJobWarning"
|
||||
values={Object {}}
|
||||
/>
|
||||
</p>
|
||||
|
@ -42,7 +42,7 @@ exports[`ML Confirm Job Delete shallow renders without errors while loading 1`]
|
|||
<p>
|
||||
<FormattedMessage
|
||||
defaultMessage="Deleting jobs..."
|
||||
id="xpack.uptime.monitorDetails.ml.deleteMessage"
|
||||
id="xpack.synthetics.monitorDetails.ml.deleteMessage"
|
||||
values={Object {}}
|
||||
/>
|
||||
)
|
||||
|
|
|
@ -29,7 +29,7 @@ export const ConfirmAlertDeletion: React.FC<Props> = ({ onConfirm, onCancel }) =
|
|||
>
|
||||
<p>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorDetails.ml.confirmAlertDeleteMessage"
|
||||
id="xpack.synthetics.monitorDetails.ml.confirmAlertDeleteMessage"
|
||||
defaultMessage="Are you sure you want to delete the alert for anomalies?"
|
||||
/>
|
||||
</p>
|
||||
|
|
|
@ -31,14 +31,14 @@ export const ConfirmJobDeletion: React.FC<Props> = ({ loading, onConfirm, onCanc
|
|||
{!loading ? (
|
||||
<p>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorDetails.ml.confirmDeleteMessage"
|
||||
id="xpack.synthetics.monitorDetails.ml.confirmDeleteMessage"
|
||||
defaultMessage="Are you sure you want to delete this job?"
|
||||
/>
|
||||
</p>
|
||||
) : (
|
||||
<p>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorDetails.ml.deleteMessage"
|
||||
id="xpack.synthetics.monitorDetails.ml.deleteMessage"
|
||||
defaultMessage="Deleting jobs..."
|
||||
/>
|
||||
)
|
||||
|
@ -47,7 +47,7 @@ export const ConfirmJobDeletion: React.FC<Props> = ({ loading, onConfirm, onCanc
|
|||
{!loading ? (
|
||||
<p>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorDetails.ml.deleteJobWarning"
|
||||
id="xpack.synthetics.monitorDetails.ml.deleteJobWarning"
|
||||
defaultMessage="Deleting a job can be time consuming.
|
||||
It will be deleted in the background and data may not disappear instantly."
|
||||
/>
|
||||
|
|
|
@ -56,7 +56,7 @@ export function MLFlyoutView({ isCreatingJob, onClickCreate, onClose, canCreateM
|
|||
<p>{labels.CREAT_ML_JOB_DESC}</p>
|
||||
<p>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.ml.enableAnomalyDetectionPanel.manageMLJobDescription"
|
||||
id="xpack.synthetics.ml.enableAnomalyDetectionPanel.manageMLJobDescription"
|
||||
defaultMessage="Once a job is created, you can manage it and see more details in the {mlJobsPageLink}."
|
||||
values={{
|
||||
mlJobsPageLink: (
|
||||
|
@ -78,7 +78,7 @@ export function MLFlyoutView({ isCreatingJob, onClickCreate, onClose, canCreateM
|
|||
>
|
||||
<p>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.ml.enableAnomalyDetectionPanel.insufficient_permissions_add_job"
|
||||
id="xpack.synthetics.ml.enableAnomalyDetectionPanel.insufficient_permissions_add_job"
|
||||
defaultMessage="You must have the Kibana privileges for Machine Learning to use this feature."
|
||||
/>
|
||||
</p>
|
||||
|
|
|
@ -8,14 +8,14 @@
|
|||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
export const JOB_CREATED_SUCCESS_TITLE = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.jobCreatedNotificationTitle',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.jobCreatedNotificationTitle',
|
||||
{
|
||||
defaultMessage: 'Job successfully created',
|
||||
}
|
||||
);
|
||||
|
||||
export const JOB_CREATED_SUCCESS_MESSAGE = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.jobCreatedNotificationText',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.jobCreatedNotificationText',
|
||||
{
|
||||
defaultMessage:
|
||||
'The analysis is now running for response duration chart. It might take a while before results are added to the response times graph.',
|
||||
|
@ -23,7 +23,7 @@ export const JOB_CREATED_SUCCESS_MESSAGE = i18n.translate(
|
|||
);
|
||||
|
||||
export const JOB_CREATED_LAZY_SUCCESS_MESSAGE = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.jobCreatedLazyNotificationText',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.jobCreatedLazyNotificationText',
|
||||
{
|
||||
defaultMessage:
|
||||
'The analysis is waiting for an ML node to become available. It might take a while before results are added to the response times graph.',
|
||||
|
@ -31,14 +31,14 @@ export const JOB_CREATED_LAZY_SUCCESS_MESSAGE = i18n.translate(
|
|||
);
|
||||
|
||||
export const JOB_CREATION_FAILED = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.jobCreationFailedNotificationTitle',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.jobCreationFailedNotificationTitle',
|
||||
{
|
||||
defaultMessage: 'Job creation failed',
|
||||
}
|
||||
);
|
||||
|
||||
export const JOB_CREATION_FAILED_MESSAGE = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.jobCreationFailedNotificationText',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.jobCreationFailedNotificationText',
|
||||
{
|
||||
defaultMessage:
|
||||
'Your current license may not allow for creating machine learning jobs, or this job may already exist.',
|
||||
|
@ -46,116 +46,119 @@ export const JOB_CREATION_FAILED_MESSAGE = i18n.translate(
|
|||
);
|
||||
|
||||
export const JOB_DELETION = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.jobDeletionNotificationTitle',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.jobDeletionNotificationTitle',
|
||||
{
|
||||
defaultMessage: 'Job deleted',
|
||||
}
|
||||
);
|
||||
|
||||
export const JOB_DELETION_SUCCESS = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.jobDeletionSuccessNotificationText',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.jobDeletionSuccessNotificationText',
|
||||
{
|
||||
defaultMessage: 'Job is successfully deleted',
|
||||
}
|
||||
);
|
||||
|
||||
export const JOB_DELETION_CONFIRMATION = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.jobDeletionConfirmLabel',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.jobDeletionConfirmLabel',
|
||||
{
|
||||
defaultMessage: 'Delete anomaly detection job?',
|
||||
}
|
||||
);
|
||||
|
||||
export const VIEW_JOB = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.jobCreatedNotificationText.viewJobLinkText',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.jobCreatedNotificationText.viewJobLinkText',
|
||||
{
|
||||
defaultMessage: 'View job',
|
||||
}
|
||||
);
|
||||
|
||||
export const EXPLORE_IN_ML_APP = i18n.translate('xpack.uptime.ml.durationChart.exploreInMlApp', {
|
||||
defaultMessage: 'Explore in ML App',
|
||||
});
|
||||
export const EXPLORE_IN_ML_APP = i18n.translate(
|
||||
'xpack.synthetics.ml.durationChart.exploreInMlApp',
|
||||
{
|
||||
defaultMessage: 'Explore in ML App',
|
||||
}
|
||||
);
|
||||
|
||||
export const ENABLE_ANOMALY_DETECTION = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.enableAnomalyDetectionTitle',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.enableAnomalyDetectionTitle',
|
||||
{
|
||||
defaultMessage: 'Enable anomaly detection',
|
||||
}
|
||||
);
|
||||
|
||||
export const ANOMALY_DETECTION = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.anomalyDetectionTitle',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.anomalyDetectionTitle',
|
||||
{
|
||||
defaultMessage: 'Anomaly detection',
|
||||
}
|
||||
);
|
||||
|
||||
export const DISABLE_ANOMALY_DETECTION = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.disableAnomalyDetectionTitle',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.disableAnomalyDetectionTitle',
|
||||
{
|
||||
defaultMessage: 'Disable anomaly detection',
|
||||
}
|
||||
);
|
||||
|
||||
export const ENABLE_ANOMALY_ALERT = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.enableAnomalyAlert',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.enableAnomalyAlert',
|
||||
{
|
||||
defaultMessage: 'Enable anomaly alert',
|
||||
}
|
||||
);
|
||||
|
||||
export const ENABLE_ANOMALY_NO_PERMISSIONS_TOOLTIP = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.noPermissionsTooltip',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.noPermissionsTooltip',
|
||||
{
|
||||
defaultMessage: 'You need read-write access to Uptime to create anomaly alerts.',
|
||||
}
|
||||
);
|
||||
|
||||
export const DISABLE_ANOMALY_ALERT = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.disableAnomalyAlert',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.disableAnomalyAlert',
|
||||
{
|
||||
defaultMessage: 'Disable anomaly alert',
|
||||
}
|
||||
);
|
||||
|
||||
export const MANAGE_ANOMALY_DETECTION = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.manageAnomalyDetectionTitle',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.manageAnomalyDetectionTitle',
|
||||
{
|
||||
defaultMessage: 'Manage anomaly detection',
|
||||
}
|
||||
);
|
||||
|
||||
export const ML_MANAGEMENT_PAGE = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.manageMLJobDescription.mlJobsPageLinkText',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.manageMLJobDescription.mlJobsPageLinkText',
|
||||
{
|
||||
defaultMessage: 'Machine Learning jobs management page',
|
||||
}
|
||||
);
|
||||
|
||||
export const TAKE_SOME_TIME_TEXT = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.manageMLJobDescription.noteText',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.manageMLJobDescription.noteText',
|
||||
{
|
||||
defaultMessage: 'Note: It might take a few minutes for the job to begin calculating results.',
|
||||
}
|
||||
);
|
||||
|
||||
export const CREATE_NEW_JOB = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.createNewJobButtonLabel',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.createNewJobButtonLabel',
|
||||
{
|
||||
defaultMessage: 'Create new job',
|
||||
}
|
||||
);
|
||||
|
||||
export const CANCEL_LABEL = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.cancelLabel',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.cancelLabel',
|
||||
{
|
||||
defaultMessage: 'Cancel',
|
||||
}
|
||||
);
|
||||
|
||||
export const CREAT_ML_JOB_DESC = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.createMLJobDescription',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.createMLJobDescription',
|
||||
{
|
||||
defaultMessage: `Here you can create a machine learning job to calculate anomaly scores on
|
||||
response durations for Uptime Monitor. Once enabled, the monitor duration chart on the details page
|
||||
|
@ -165,14 +168,14 @@ export const CREAT_ML_JOB_DESC = i18n.translate(
|
|||
);
|
||||
|
||||
export const START_TRAIL = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.startTrial',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.startTrial',
|
||||
{
|
||||
defaultMessage: 'Start free 14-day trial',
|
||||
}
|
||||
);
|
||||
|
||||
export const START_TRAIL_DESC = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.startTrialDesc',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.startTrialDesc',
|
||||
{
|
||||
defaultMessage:
|
||||
'In order to access duration anomaly detection, you have to be subscribed to an Elastic Platinum license.',
|
||||
|
@ -180,7 +183,7 @@ export const START_TRAIL_DESC = i18n.translate(
|
|||
);
|
||||
|
||||
export const ENABLE_MANAGE_JOB = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.enable_or_manage_job',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.enable_or_manage_job',
|
||||
{
|
||||
defaultMessage:
|
||||
'You can enable anomaly detection job or if job is already there you can manage the job or alert.',
|
||||
|
@ -188,7 +191,7 @@ export const ENABLE_MANAGE_JOB = i18n.translate(
|
|||
);
|
||||
|
||||
export const ADD_JOB_PERMISSIONS_NEEDED = i18n.translate(
|
||||
'xpack.uptime.ml.enableAnomalyDetectionPanel.add_job_permissions_needed',
|
||||
'xpack.synthetics.ml.enableAnomalyDetectionPanel.add_job_permissions_needed',
|
||||
{
|
||||
defaultMessage: 'Permissions needed',
|
||||
}
|
||||
|
|
|
@ -41,13 +41,13 @@ export const MonitorDurationComponent = ({
|
|||
<h3>
|
||||
{hasMLJob ? (
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorCharts.monitorDuration.titleLabelWithAnomaly"
|
||||
id="xpack.synthetics.monitorCharts.monitorDuration.titleLabelWithAnomaly"
|
||||
defaultMessage="Monitor duration (Anomalies: {noOfAnomalies})"
|
||||
values={{ noOfAnomalies: anomalies?.anomalies?.length ?? 0 }}
|
||||
/>
|
||||
) : (
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorCharts.monitorDuration.titleLabel"
|
||||
id="xpack.synthetics.monitorCharts.monitorDuration.titleLabel"
|
||||
defaultMessage="Monitor duration"
|
||||
/>
|
||||
)}
|
||||
|
@ -59,7 +59,7 @@ export const MonitorDurationComponent = ({
|
|||
</EuiFlexItem>
|
||||
{/* <EuiFlexItem grow={false}>*/}
|
||||
{/* <EuiButton size="s" isDisabled={loading} href={exploratoryViewLink}>*/}
|
||||
{/* <FormattedMessage id="xpack.uptime.monitorDuration.analyze" defaultMessage="Analyze" />*/}
|
||||
{/* <FormattedMessage id="xpack.synthetics.monitorDuration.analyze" defaultMessage="Analyze" />*/}
|
||||
{/* </EuiButton>*/}
|
||||
{/* </EuiFlexItem>*/}
|
||||
</EuiFlexGroup>
|
||||
|
|
|
@ -42,28 +42,28 @@ export const MonitorPageTitleContent: React.FC = () => {
|
|||
case 'http':
|
||||
return (
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorDetails.title.pingType.http"
|
||||
id="xpack.synthetics.monitorDetails.title.pingType.http"
|
||||
defaultMessage="HTTP ping"
|
||||
/>
|
||||
);
|
||||
case 'tcp':
|
||||
return (
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorDetails.title.pingType.tcp"
|
||||
id="xpack.synthetics.monitorDetails.title.pingType.tcp"
|
||||
defaultMessage="TCP ping"
|
||||
/>
|
||||
);
|
||||
case 'icmp':
|
||||
return (
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorDetails.title.pingType.icmp"
|
||||
id="xpack.synthetics.monitorDetails.title.pingType.icmp"
|
||||
defaultMessage="ICMP ping"
|
||||
/>
|
||||
);
|
||||
case 'browser':
|
||||
return (
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorDetails.title.pingType.browser"
|
||||
id="xpack.synthetics.monitorDetails.title.pingType.browser"
|
||||
defaultMessage="Browser"
|
||||
/>
|
||||
);
|
||||
|
@ -85,7 +85,7 @@ export const MonitorPageTitleContent: React.FC = () => {
|
|||
<EuiBadge color="hollow">
|
||||
{renderMonitorType(type)}{' '}
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorDetails.title.disclaimer.description"
|
||||
id="xpack.synthetics.monitorDetails.title.disclaimer.description"
|
||||
defaultMessage="(BETA)"
|
||||
/>
|
||||
</EuiBadge>
|
||||
|
@ -96,7 +96,7 @@ export const MonitorPageTitleContent: React.FC = () => {
|
|||
<EuiText>
|
||||
<EuiLink href="https://www.elastic.co/what-is/synthetic-monitoring" target="_blank">
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorDetails.title.disclaimer.link"
|
||||
id="xpack.synthetics.monitorDetails.title.disclaimer.link"
|
||||
defaultMessage="See more"
|
||||
/>
|
||||
</EuiLink>
|
||||
|
|
|
@ -50,10 +50,10 @@ export const ExpandRowColumn = ({ item, expandedRows, setExpandedRows }: Props)
|
|||
isDisabled={!rowShouldExpand(item)}
|
||||
aria-label={
|
||||
expandedRows[item.docId]
|
||||
? i18n.translate('xpack.uptime.pingList.collapseRow', {
|
||||
? i18n.translate('xpack.synthetics.pingList.collapseRow', {
|
||||
defaultMessage: 'Collapse',
|
||||
})
|
||||
: i18n.translate('xpack.uptime.pingList.expandRow', { defaultMessage: 'Expand' })
|
||||
: i18n.translate('xpack.synthetics.pingList.expandRow', { defaultMessage: 'Expand' })
|
||||
}
|
||||
iconType={expandedRows[item.docId] ? 'arrowUp' : 'arrowDown'}
|
||||
/>
|
||||
|
|
|
@ -47,7 +47,7 @@ export const PingStatusColumn = ({ pingStatus, item }: Props) => {
|
|||
}
|
||||
|
||||
return (
|
||||
<div data-test-subj={`xpack.uptime.pingList.ping-${item.docId}`}>
|
||||
<div data-test-subj={`xpack.synthetics.pingList.ping-${item.docId}`}>
|
||||
<EuiBadge
|
||||
className="eui-textCenter"
|
||||
color={pingStatus === STATUS.UP ? 'success' : dangerBehindText}
|
||||
|
@ -56,7 +56,7 @@ export const PingStatusColumn = ({ pingStatus, item }: Props) => {
|
|||
</EuiBadge>
|
||||
<EuiSpacer size="xs" />
|
||||
<EuiText size="xs" color="subdued">
|
||||
{i18n.translate('xpack.uptime.pingList.recencyMessage', {
|
||||
{i18n.translate('xpack.synthetics.pingList.recencyMessage', {
|
||||
values: { fromNow: checkedTime },
|
||||
defaultMessage: 'Checked {fromNow}',
|
||||
description:
|
||||
|
|
|
@ -21,7 +21,7 @@ export const NoImageAvailable = () => {
|
|||
<BorderedText data-test-subj="pingTimestampNoImageAvailable">
|
||||
<strong>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.synthetics.screenshot.noImageMessage"
|
||||
id="xpack.synthetics.synthetics.screenshot.noImageMessage"
|
||||
defaultMessage="No image available"
|
||||
/>
|
||||
</strong>
|
||||
|
|
|
@ -7,27 +7,36 @@
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
export const prevAriaLabel = i18n.translate('xpack.uptime.synthetics.prevStepButton.airaLabel', {
|
||||
defaultMessage: 'Previous step',
|
||||
});
|
||||
export const prevAriaLabel = i18n.translate(
|
||||
'xpack.synthetics.synthetics.prevStepButton.airaLabel',
|
||||
{
|
||||
defaultMessage: 'Previous step',
|
||||
}
|
||||
);
|
||||
|
||||
export const nextAriaLabel = i18n.translate('xpack.uptime.synthetics.nextStepButton.ariaLabel', {
|
||||
defaultMessage: 'Next step',
|
||||
});
|
||||
export const nextAriaLabel = i18n.translate(
|
||||
'xpack.synthetics.synthetics.nextStepButton.ariaLabel',
|
||||
{
|
||||
defaultMessage: 'Next step',
|
||||
}
|
||||
);
|
||||
|
||||
export const imageLoadingSpinnerAriaLabel = i18n.translate(
|
||||
'xpack.uptime.synthetics.imageLoadingSpinner.ariaLabel',
|
||||
'xpack.synthetics.synthetics.imageLoadingSpinner.ariaLabel',
|
||||
{
|
||||
defaultMessage: 'An animated spinner indicating the image is loading',
|
||||
}
|
||||
);
|
||||
|
||||
export const fullSizeImageAlt = i18n.translate('xpack.uptime.synthetics.thumbnail.fullSize.alt', {
|
||||
defaultMessage: `A larger version of the screenshot for this journey step's thumbnail.`,
|
||||
});
|
||||
export const fullSizeImageAlt = i18n.translate(
|
||||
'xpack.synthetics.synthetics.thumbnail.fullSize.alt',
|
||||
{
|
||||
defaultMessage: `A larger version of the screenshot for this journey step's thumbnail.`,
|
||||
}
|
||||
);
|
||||
|
||||
export const formatCaptionContent = (stepNumber: number, totalSteps?: number) =>
|
||||
i18n.translate('xpack.uptime.synthetics.pingTimestamp.captionContent', {
|
||||
i18n.translate('xpack.synthetics.synthetics.pingTimestamp.captionContent', {
|
||||
defaultMessage: 'Step: {stepNumber} of {totalSteps}',
|
||||
values: {
|
||||
stepNumber,
|
||||
|
|
|
@ -16,7 +16,7 @@ const bodyDocsLink =
|
|||
export const DocLinkForBody = () => {
|
||||
const docsLink = (
|
||||
<EuiLink href={bodyDocsLink} target="_blank">
|
||||
{i18n.translate('xpack.uptime.pingList.drawer.body.docsLink', {
|
||||
{i18n.translate('xpack.synthetics.pingList.drawer.body.docsLink', {
|
||||
defaultMessage: 'docs',
|
||||
description: 'Docs link to set response body',
|
||||
})}
|
||||
|
@ -26,7 +26,7 @@ export const DocLinkForBody = () => {
|
|||
return (
|
||||
<EuiText>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.pingList.expandedRow.response_body.notRecorded"
|
||||
id="xpack.synthetics.pingList.expandedRow.response_body.notRecorded"
|
||||
defaultMessage="Body not recorded. Read our {docsLink} for more information on recording response bodies."
|
||||
values={{ docsLink }}
|
||||
/>
|
||||
|
|
|
@ -33,14 +33,14 @@ const BodyDescription = ({ body }: { body: HttpResponseBody }) => {
|
|||
|
||||
const truncatedText =
|
||||
contentBytes > 0 && contentBytes < bodyBytes
|
||||
? i18n.translate('xpack.uptime.pingList.expandedRow.truncated', {
|
||||
? i18n.translate('xpack.synthetics.pingList.expandedRow.truncated', {
|
||||
defaultMessage: 'Showing first {contentBytes} bytes.',
|
||||
values: { contentBytes },
|
||||
})
|
||||
: null;
|
||||
const bodySizeText =
|
||||
bodyBytes > 0
|
||||
? i18n.translate('xpack.uptime.pingList.expandedRow.bodySize', {
|
||||
? i18n.translate('xpack.synthetics.pingList.expandedRow.bodySize', {
|
||||
defaultMessage: 'Body size is {bodyBytes}.',
|
||||
values: { bodyBytes: formatNumber(bodyBytes, '0b') },
|
||||
})
|
||||
|
@ -59,7 +59,9 @@ export const PingListExpandedRowComponent = ({ ping }: Props) => {
|
|||
// Show the error block
|
||||
if (ping.error) {
|
||||
listItems.push({
|
||||
title: i18n.translate('xpack.uptime.pingList.expandedRow.error', { defaultMessage: 'Error' }),
|
||||
title: i18n.translate('xpack.synthetics.pingList.expandedRow.error', {
|
||||
defaultMessage: 'Error',
|
||||
}),
|
||||
description: <EuiText>{ping.error.message}</EuiText>,
|
||||
});
|
||||
}
|
||||
|
@ -69,7 +71,7 @@ export const PingListExpandedRowComponent = ({ ping }: Props) => {
|
|||
const body = ping.http.response.body;
|
||||
|
||||
listItems.push({
|
||||
title: i18n.translate('xpack.uptime.pingList.expandedRow.response_body', {
|
||||
title: i18n.translate('xpack.synthetics.pingList.expandedRow.response_body', {
|
||||
defaultMessage: 'Response Body',
|
||||
}),
|
||||
description: (
|
||||
|
|
|
@ -30,7 +30,7 @@ export const PingHeaders = ({ headers }: Props) => {
|
|||
buttonContent={
|
||||
<EuiText size="s">
|
||||
<h3>
|
||||
{i18n.translate('xpack.uptime.pingList.headers.title', {
|
||||
{i18n.translate('xpack.synthetics.pingList.headers.title', {
|
||||
defaultMessage: 'Response headers',
|
||||
})}
|
||||
</h3>
|
||||
|
|
|
@ -20,7 +20,7 @@ export const LocationName = ({ location }: LocationNameProps) =>
|
|||
href="https://www.elastic.co/guide/en/beats/heartbeat/current/configuration-observer-options.html"
|
||||
target="_blank"
|
||||
>
|
||||
{i18n.translate('xpack.uptime.locationName.helpLinkAnnotation', {
|
||||
{i18n.translate('xpack.synthetics.locationName.helpLinkAnnotation', {
|
||||
defaultMessage: 'Add location',
|
||||
description:
|
||||
'Text that instructs the user to navigate to our docs to add a geographic location to their data',
|
||||
|
|
|
@ -29,7 +29,7 @@ const MILLIS_LIMIT = ONE_SECOND_AS_MICROS * 1;
|
|||
|
||||
export const formatDuration = (durationMicros: number) => {
|
||||
if (durationMicros < MILLIS_LIMIT) {
|
||||
return i18n.translate('xpack.uptime.pingList.durationMsColumnFormatting', {
|
||||
return i18n.translate('xpack.synthetics.pingList.durationMsColumnFormatting', {
|
||||
values: { millis: microsToMillis(durationMicros) },
|
||||
defaultMessage: '{millis} ms',
|
||||
});
|
||||
|
@ -39,12 +39,12 @@ export const formatDuration = (durationMicros: number) => {
|
|||
// we format seconds with correct pluralization here and not for `ms` because it is much more likely users
|
||||
// will encounter times of exactly '1' second.
|
||||
if (seconds === '1') {
|
||||
return i18n.translate('xpack.uptime.pingist.durationSecondsColumnFormatting.singular', {
|
||||
return i18n.translate('xpack.synthetics.pingist.durationSecondsColumnFormatting.singular', {
|
||||
values: { seconds },
|
||||
defaultMessage: '{seconds} second',
|
||||
});
|
||||
}
|
||||
return i18n.translate('xpack.uptime.pingist.durationSecondsColumnFormatting', {
|
||||
return i18n.translate('xpack.synthetics.pingist.durationSecondsColumnFormatting', {
|
||||
values: { seconds },
|
||||
defaultMessage: '{seconds} seconds',
|
||||
});
|
||||
|
|
|
@ -18,7 +18,7 @@ export const PingListHeader = () => {
|
|||
<EuiTitle size="s">
|
||||
<h4>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.pingList.checkHistoryTitle"
|
||||
id="xpack.synthetics.pingList.checkHistoryTitle"
|
||||
defaultMessage="History"
|
||||
/>
|
||||
</h4>
|
||||
|
|
|
@ -128,7 +128,7 @@ export function PingListTable({ loading, error, pings, pagination, onChange, fai
|
|||
align: 'right',
|
||||
dataType: 'number',
|
||||
field: 'monitor.ip',
|
||||
name: i18n.translate('xpack.uptime.pingList.ipAddressColumnLabel', {
|
||||
name: i18n.translate('xpack.synthetics.pingList.ipAddressColumnLabel', {
|
||||
defaultMessage: 'IP',
|
||||
}),
|
||||
},
|
||||
|
@ -137,7 +137,7 @@ export function PingListTable({ loading, error, pings, pagination, onChange, fai
|
|||
{
|
||||
align: 'center',
|
||||
field: 'monitor.duration.us',
|
||||
name: i18n.translate('xpack.uptime.pingList.durationMsColumnLabel', {
|
||||
name: i18n.translate('xpack.synthetics.pingList.durationMsColumnLabel', {
|
||||
defaultMessage: 'Duration',
|
||||
}),
|
||||
render: (duration: number | null) =>
|
||||
|
@ -164,7 +164,7 @@ export function PingListTable({ loading, error, pings, pagination, onChange, fai
|
|||
{
|
||||
field: 'monitor.status',
|
||||
align: 'left',
|
||||
name: i18n.translate('xpack.uptime.pingList.columns.failedStep', {
|
||||
name: i18n.translate('xpack.synthetics.pingList.columns.failedStep', {
|
||||
defaultMessage: 'Failed step',
|
||||
}),
|
||||
render: (_timestamp: string, item: Ping) => (
|
||||
|
@ -234,10 +234,10 @@ export function PingListTable({ loading, error, pings, pagination, onChange, fai
|
|||
pagination={pagination}
|
||||
noItemsMessage={
|
||||
loading
|
||||
? i18n.translate('xpack.uptime.pingList.pingsLoadingMesssage', {
|
||||
? i18n.translate('xpack.synthetics.pingList.pingsLoadingMesssage', {
|
||||
defaultMessage: 'Loading history...',
|
||||
})
|
||||
: i18n.translate('xpack.uptime.pingList.pingsUnavailableMessage', {
|
||||
: i18n.translate('xpack.synthetics.pingList.pingsUnavailableMessage', {
|
||||
defaultMessage: 'No history found',
|
||||
})
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ export const PingRedirects: React.FC<Props> = ({ monitorStatus, showTitle }) =>
|
|||
iconType: 'popout',
|
||||
iconSize: 's',
|
||||
alwaysShow: true,
|
||||
'aria-label': i18n.translate('xpack.uptime.monitorList.redirects.openWindow', {
|
||||
'aria-label': i18n.translate('xpack.synthetics.monitorList.redirects.openWindow', {
|
||||
defaultMessage: 'Link will open in new window.',
|
||||
}),
|
||||
},
|
||||
|
@ -59,7 +59,7 @@ export const PingRedirects: React.FC<Props> = ({ monitorStatus, showTitle }) =>
|
|||
color: 'text',
|
||||
iconType: 'popout',
|
||||
iconSize: 's',
|
||||
'aria-label': i18n.translate('xpack.uptime.monitorList.redirects.openWindow', {
|
||||
'aria-label': i18n.translate('xpack.synthetics.monitorList.redirects.openWindow', {
|
||||
defaultMessage: 'Link will open in new window.',
|
||||
}),
|
||||
alwaysShow: true,
|
||||
|
@ -74,7 +74,7 @@ export const PingRedirects: React.FC<Props> = ({ monitorStatus, showTitle }) =>
|
|||
{showTitle && (
|
||||
<EuiText size="xs">
|
||||
<h3>
|
||||
{i18n.translate('xpack.uptime.monitorList.redirects.title', {
|
||||
{i18n.translate('xpack.synthetics.monitorList.redirects.title', {
|
||||
defaultMessage: 'Redirects',
|
||||
})}
|
||||
</h3>
|
||||
|
@ -83,7 +83,7 @@ export const PingRedirects: React.FC<Props> = ({ monitorStatus, showTitle }) =>
|
|||
<EuiSpacer size="xs" />
|
||||
{
|
||||
<EuiText>
|
||||
{i18n.translate('xpack.uptime.monitorList.redirects.description', {
|
||||
{i18n.translate('xpack.synthetics.monitorList.redirects.description', {
|
||||
defaultMessage: 'Heartbeat followed {number} redirects while executing ping.',
|
||||
values: {
|
||||
number: list?.length ?? 0,
|
||||
|
|
|
@ -7,24 +7,24 @@
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
export const STATUS_LABEL = i18n.translate('xpack.uptime.pingList.statusColumnLabel', {
|
||||
export const STATUS_LABEL = i18n.translate('xpack.synthetics.pingList.statusColumnLabel', {
|
||||
defaultMessage: 'Status',
|
||||
});
|
||||
|
||||
export const RES_CODE_LABEL = i18n.translate('xpack.uptime.pingList.responseCodeColumnLabel', {
|
||||
export const RES_CODE_LABEL = i18n.translate('xpack.synthetics.pingList.responseCodeColumnLabel', {
|
||||
defaultMessage: 'Response code',
|
||||
});
|
||||
export const ERROR_TYPE_LABEL = i18n.translate('xpack.uptime.pingList.errorTypeColumnLabel', {
|
||||
export const ERROR_TYPE_LABEL = i18n.translate('xpack.synthetics.pingList.errorTypeColumnLabel', {
|
||||
defaultMessage: 'Error type',
|
||||
});
|
||||
export const ERROR_LABEL = i18n.translate('xpack.uptime.pingList.errorColumnLabel', {
|
||||
export const ERROR_LABEL = i18n.translate('xpack.synthetics.pingList.errorColumnLabel', {
|
||||
defaultMessage: 'Error',
|
||||
});
|
||||
|
||||
export const LOCATION_LABEL = i18n.translate('xpack.uptime.pingList.locationNameColumnLabel', {
|
||||
export const LOCATION_LABEL = i18n.translate('xpack.synthetics.pingList.locationNameColumnLabel', {
|
||||
defaultMessage: 'Location',
|
||||
});
|
||||
|
||||
export const TIMESTAMP_LABEL = i18n.translate('xpack.uptime.pingList.timestampColumnLabel', {
|
||||
export const TIMESTAMP_LABEL = i18n.translate('xpack.synthetics.pingList.timestampColumnLabel', {
|
||||
defaultMessage: 'Timestamp',
|
||||
});
|
||||
|
|
|
@ -15,7 +15,7 @@ exports[`StatusByLocation component renders properly against props 1`] = `
|
|||
<h2>
|
||||
<FormattedMessage
|
||||
defaultMessage="{status} in {loc} locations"
|
||||
id="xpack.uptime.monitorStatusBar.locations.upStatus"
|
||||
id="xpack.synthetics.monitorStatusBar.locations.upStatus"
|
||||
values={
|
||||
Object {
|
||||
"loc": "2",
|
||||
|
|
|
@ -41,7 +41,7 @@ export const AvailabilityReporting: React.FC<Props> = ({ allLocations }) => {
|
|||
return (
|
||||
<span>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.availabilityLabelText"
|
||||
id="xpack.synthetics.availabilityLabelText"
|
||||
defaultMessage="{value} %"
|
||||
values={{ value: formatAvailabilityValue(val) }}
|
||||
description="A percentage value, like 23.5%"
|
||||
|
|
|
@ -33,7 +33,7 @@ export const MonitorRedirects: React.FC<Props> = ({ monitorStatus }) => {
|
|||
onClick={() => setIsPopoverOpen(!isPopoverOpen)}
|
||||
data-test-subj="uptimeMonitorRedirectInfo"
|
||||
>
|
||||
{i18n.translate('xpack.uptime.monitorList.redirects.title.number', {
|
||||
{i18n.translate('xpack.synthetics.monitorList.redirects.title.number', {
|
||||
defaultMessage: '{number}',
|
||||
values: {
|
||||
number: list?.length ?? 0,
|
||||
|
|
|
@ -40,7 +40,7 @@ export const MonitorSSLCertificate = ({ tls }: Props) => {
|
|||
<>
|
||||
<MonListTitle>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorStatusBar.sslCertificate.title"
|
||||
id="xpack.synthetics.monitorStatusBar.sslCertificate.title"
|
||||
defaultMessage="TLS Certificate"
|
||||
/>
|
||||
</MonListTitle>
|
||||
|
|
|
@ -44,19 +44,19 @@ export const MonListDescription = styled(EuiDescriptionListDescription)`
|
|||
export const renderMonitorType = (type: string | undefined) => {
|
||||
switch (type) {
|
||||
case 'http':
|
||||
return i18n.translate('xpack.uptime.monitorDetails.statusBar.pingType.http', {
|
||||
return i18n.translate('xpack.synthetics.monitorDetails.statusBar.pingType.http', {
|
||||
defaultMessage: 'HTTP',
|
||||
});
|
||||
case 'tcp':
|
||||
return i18n.translate('xpack.uptime.monitorDetails.statusBar.pingType.tcp', {
|
||||
return i18n.translate('xpack.synthetics.monitorDetails.statusBar.pingType.tcp', {
|
||||
defaultMessage: 'TCP',
|
||||
});
|
||||
case 'icmp':
|
||||
return i18n.translate('xpack.uptime.monitorDetails.statusBar.pingType.icmp', {
|
||||
return i18n.translate('xpack.synthetics.monitorDetails.statusBar.pingType.icmp', {
|
||||
defaultMessage: 'ICMP',
|
||||
});
|
||||
case 'browser':
|
||||
return i18n.translate('xpack.uptime.monitorDetails.statusBar.pingType.browser', {
|
||||
return i18n.translate('xpack.synthetics.monitorDetails.statusBar.pingType.browser', {
|
||||
defaultMessage: 'Browser',
|
||||
});
|
||||
default:
|
||||
|
@ -83,7 +83,7 @@ export const MonitorStatusBar: React.FC = () => {
|
|||
<MonListTitle>{OverallAvailability}</MonListTitle>
|
||||
<MonListDescription data-test-subj="uptimeOverallAvailability">
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.availabilityLabelText"
|
||||
id="xpack.synthetics.availabilityLabelText"
|
||||
defaultMessage="{value} %"
|
||||
values={{ value: formatAvailabilityValue(availability) }}
|
||||
description="A percentage value, like 23.5 %"
|
||||
|
|
|
@ -48,7 +48,7 @@ export const StatusByLocations = ({ locations }: StatusByLocationsProps) => {
|
|||
<h2>
|
||||
{locations.length <= 1 ? (
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorStatusBar.locations.oneLocStatus"
|
||||
id="xpack.synthetics.monitorStatusBar.locations.oneLocStatus"
|
||||
values={{
|
||||
status,
|
||||
loc: statusMessage,
|
||||
|
@ -57,7 +57,7 @@ export const StatusByLocations = ({ locations }: StatusByLocationsProps) => {
|
|||
/>
|
||||
) : (
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorStatusBar.locations.upStatus"
|
||||
id="xpack.synthetics.monitorStatusBar.locations.upStatus"
|
||||
values={{
|
||||
status,
|
||||
loc: statusMessage,
|
||||
|
|
|
@ -8,93 +8,93 @@
|
|||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
export const healthStatusMessageAriaLabel = i18n.translate(
|
||||
'xpack.uptime.monitorStatusBar.healthStatusMessageAriaLabel',
|
||||
'xpack.synthetics.monitorStatusBar.healthStatusMessageAriaLabel',
|
||||
{
|
||||
defaultMessage: 'Monitor status',
|
||||
}
|
||||
);
|
||||
|
||||
export const typeLabel = i18n.translate('xpack.uptime.monitorStatusBar.type.label', {
|
||||
export const typeLabel = i18n.translate('xpack.synthetics.monitorStatusBar.type.label', {
|
||||
defaultMessage: 'Type',
|
||||
});
|
||||
|
||||
export const typeAriaLabel = i18n.translate('xpack.uptime.monitorStatusBar.type.ariaLabel', {
|
||||
export const typeAriaLabel = i18n.translate('xpack.synthetics.monitorStatusBar.type.ariaLabel', {
|
||||
defaultMessage: 'Monitor type',
|
||||
});
|
||||
|
||||
export const monitorUrlLinkAriaLabel = i18n.translate(
|
||||
'xpack.uptime.monitorStatusBar.monitorUrlLinkAriaLabel',
|
||||
'xpack.synthetics.monitorStatusBar.monitorUrlLinkAriaLabel',
|
||||
{
|
||||
defaultMessage: 'Monitor URL link',
|
||||
}
|
||||
);
|
||||
|
||||
export const durationTextAriaLabel = i18n.translate(
|
||||
'xpack.uptime.monitorStatusBar.durationTextAriaLabel',
|
||||
'xpack.synthetics.monitorStatusBar.durationTextAriaLabel',
|
||||
{
|
||||
defaultMessage: 'Monitor duration in milliseconds',
|
||||
}
|
||||
);
|
||||
|
||||
export const timestampFromNowTextAriaLabel = i18n.translate(
|
||||
'xpack.uptime.monitorStatusBar.timestampFromNowTextAriaLabel',
|
||||
'xpack.synthetics.monitorStatusBar.timestampFromNowTextAriaLabel',
|
||||
{
|
||||
defaultMessage: 'Time since last check',
|
||||
}
|
||||
);
|
||||
|
||||
export const loadingMessage = i18n.translate('xpack.uptime.monitorStatusBar.loadingMessage', {
|
||||
export const loadingMessage = i18n.translate('xpack.synthetics.monitorStatusBar.loadingMessage', {
|
||||
defaultMessage: 'Loading…',
|
||||
});
|
||||
|
||||
export const MonitorIDLabel = i18n.translate('xpack.uptime.monitorStatusBar.monitor.id', {
|
||||
export const MonitorIDLabel = i18n.translate('xpack.synthetics.monitorStatusBar.monitor.id', {
|
||||
defaultMessage: 'Monitor ID',
|
||||
});
|
||||
|
||||
export const OverallAvailability = i18n.translate(
|
||||
'xpack.uptime.monitorStatusBar.monitor.availability',
|
||||
'xpack.synthetics.monitorStatusBar.monitor.availability',
|
||||
{
|
||||
defaultMessage: 'Overall availability',
|
||||
}
|
||||
);
|
||||
|
||||
export const MonitoringFrom = i18n.translate(
|
||||
'xpack.uptime.monitorStatusBar.monitor.monitoringFrom',
|
||||
'xpack.synthetics.monitorStatusBar.monitor.monitoringFrom',
|
||||
{
|
||||
defaultMessage: 'Monitoring from',
|
||||
}
|
||||
);
|
||||
|
||||
export const ChangeToMapView = i18n.translate(
|
||||
'xpack.uptime.monitorStatusBar.monitor.monitoringFrom.listToMap',
|
||||
'xpack.synthetics.monitorStatusBar.monitor.monitoringFrom.listToMap',
|
||||
{
|
||||
defaultMessage: 'Change to map view to check availability by location.',
|
||||
}
|
||||
);
|
||||
|
||||
export const ChangeToListView = i18n.translate(
|
||||
'xpack.uptime.monitorStatusBar.monitor.monitoringFrom.MapToList',
|
||||
'xpack.synthetics.monitorStatusBar.monitor.monitoringFrom.MapToList',
|
||||
{
|
||||
defaultMessage: 'Change to list view to check availability by location.',
|
||||
}
|
||||
);
|
||||
|
||||
export const LocationLabel = i18n.translate(
|
||||
'xpack.uptime.monitorStatusBar.monitor.availabilityReport.location',
|
||||
'xpack.synthetics.monitorStatusBar.monitor.availabilityReport.location',
|
||||
{
|
||||
defaultMessage: 'Location',
|
||||
}
|
||||
);
|
||||
|
||||
export const AvailabilityLabel = i18n.translate(
|
||||
'xpack.uptime.monitorStatusBar.monitor.availabilityReport.availability',
|
||||
'xpack.synthetics.monitorStatusBar.monitor.availabilityReport.availability',
|
||||
{
|
||||
defaultMessage: 'Availability',
|
||||
}
|
||||
);
|
||||
|
||||
export const LastCheckLabel = i18n.translate(
|
||||
'xpack.uptime.monitorStatusBar.monitor.availabilityReport.lastCheck',
|
||||
'xpack.synthetics.monitorStatusBar.monitor.availabilityReport.lastCheck',
|
||||
{
|
||||
defaultMessage: 'Last check',
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ import { useMonitorBreadcrumb } from './use_monitor_breadcrumb';
|
|||
import { WaterfallChartContainer } from './waterfall/waterfall_chart_container';
|
||||
import { useStepDetailPage } from '../../../../pages/synthetics/step_detail_page';
|
||||
|
||||
export const NO_STEP_DATA = i18n.translate('xpack.uptime.synthetics.stepDetail.noData', {
|
||||
export const NO_STEP_DATA = i18n.translate('xpack.synthetics.synthetics.stepDetail.noData', {
|
||||
defaultMessage: 'No data could be found for this step',
|
||||
});
|
||||
|
||||
|
|
|
@ -11,14 +11,14 @@ import moment from 'moment';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
export const PREVIOUS_CHECK_BUTTON_TEXT = i18n.translate(
|
||||
'xpack.uptime.synthetics.stepDetail.previousCheckButtonText',
|
||||
'xpack.synthetics.synthetics.stepDetail.previousCheckButtonText',
|
||||
{
|
||||
defaultMessage: 'Previous check',
|
||||
}
|
||||
);
|
||||
|
||||
export const NEXT_CHECK_BUTTON_TEXT = i18n.translate(
|
||||
'xpack.uptime.synthetics.stepDetail.nextCheckButtonText',
|
||||
'xpack.synthetics.synthetics.stepDetail.nextCheckButtonText',
|
||||
{
|
||||
defaultMessage: 'Next check',
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ export const StepPageTitleContent = ({
|
|||
<EuiFlexItem grow={false}>
|
||||
<EuiText size="s">
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.synthetics.stepDetail.totalSteps"
|
||||
id="xpack.synthetics.synthetics.stepDetail.totalSteps"
|
||||
defaultMessage="Step {stepIndex} of {totalSteps}"
|
||||
values={{
|
||||
stepIndex,
|
||||
|
|
|
@ -54,7 +54,7 @@ export const useMonitorBreadcrumb = ({
|
|||
...(performanceBreakDownView
|
||||
? [
|
||||
{
|
||||
text: i18n.translate('xpack.uptime.synthetics.performanceBreakDown.label', {
|
||||
text: i18n.translate('xpack.synthetics.synthetics.performanceBreakDown.label', {
|
||||
defaultMessage: 'Performance breakdown',
|
||||
}),
|
||||
},
|
||||
|
|
|
@ -33,31 +33,31 @@ export enum Metadata {
|
|||
|
||||
export const FriendlyTimingLabels = {
|
||||
[Timings.Blocked]: i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfallChart.labels.timings.blocked',
|
||||
'xpack.synthetics.synthetics.waterfallChart.labels.timings.blocked',
|
||||
{
|
||||
defaultMessage: 'Queued / Blocked',
|
||||
}
|
||||
),
|
||||
[Timings.Dns]: i18n.translate('xpack.uptime.synthetics.waterfallChart.labels.timings.dns', {
|
||||
[Timings.Dns]: i18n.translate('xpack.synthetics.synthetics.waterfallChart.labels.timings.dns', {
|
||||
defaultMessage: 'DNS',
|
||||
}),
|
||||
[Timings.Connect]: i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfallChart.labels.timings.connect',
|
||||
'xpack.synthetics.synthetics.waterfallChart.labels.timings.connect',
|
||||
{
|
||||
defaultMessage: 'Connecting',
|
||||
}
|
||||
),
|
||||
[Timings.Ssl]: i18n.translate('xpack.uptime.synthetics.waterfallChart.labels.timings.ssl', {
|
||||
[Timings.Ssl]: i18n.translate('xpack.synthetics.synthetics.waterfallChart.labels.timings.ssl', {
|
||||
defaultMessage: 'TLS',
|
||||
}),
|
||||
[Timings.Send]: i18n.translate('xpack.uptime.synthetics.waterfallChart.labels.timings.send', {
|
||||
[Timings.Send]: i18n.translate('xpack.synthetics.synthetics.waterfallChart.labels.timings.send', {
|
||||
defaultMessage: 'Sending request',
|
||||
}),
|
||||
[Timings.Wait]: i18n.translate('xpack.uptime.synthetics.waterfallChart.labels.timings.wait', {
|
||||
[Timings.Wait]: i18n.translate('xpack.synthetics.synthetics.waterfallChart.labels.timings.wait', {
|
||||
defaultMessage: 'Waiting (TTFB)',
|
||||
}),
|
||||
[Timings.Receive]: i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfallChart.labels.timings.receive',
|
||||
'xpack.synthetics.synthetics.waterfallChart.labels.timings.receive',
|
||||
{
|
||||
defaultMessage: 'Content downloading',
|
||||
}
|
||||
|
@ -66,60 +66,60 @@ export const FriendlyTimingLabels = {
|
|||
|
||||
export const FriendlyFlyoutLabels = {
|
||||
[Metadata.Status]: i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfallChart.labels.metadata.status',
|
||||
'xpack.synthetics.synthetics.waterfallChart.labels.metadata.status',
|
||||
{
|
||||
defaultMessage: 'Status',
|
||||
}
|
||||
),
|
||||
[Metadata.MimeType]: i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfallChart.labels.metadata.contentType',
|
||||
'xpack.synthetics.synthetics.waterfallChart.labels.metadata.contentType',
|
||||
{
|
||||
defaultMessage: 'Content type',
|
||||
}
|
||||
),
|
||||
[Metadata.RequestStart]: i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfallChart.labels.metadata.requestStart',
|
||||
'xpack.synthetics.synthetics.waterfallChart.labels.metadata.requestStart',
|
||||
{
|
||||
defaultMessage: 'Request start',
|
||||
}
|
||||
),
|
||||
[Metadata.ResourceSize]: i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfallChart.labels.metadata.resourceSize',
|
||||
'xpack.synthetics.synthetics.waterfallChart.labels.metadata.resourceSize',
|
||||
{
|
||||
defaultMessage: 'Resource size',
|
||||
}
|
||||
),
|
||||
[Metadata.TransferSize]: i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfallChart.labels.metadata.transferSize',
|
||||
'xpack.synthetics.synthetics.waterfallChart.labels.metadata.transferSize',
|
||||
{
|
||||
defaultMessage: 'Transfer size',
|
||||
}
|
||||
),
|
||||
[Metadata.CertificateIssuer]: i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfallChart.labels.metadata.certificateIssuer',
|
||||
'xpack.synthetics.synthetics.waterfallChart.labels.metadata.certificateIssuer',
|
||||
{
|
||||
defaultMessage: 'Issuer',
|
||||
}
|
||||
),
|
||||
[Metadata.CertificateIssueDate]: i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfallChart.labels.metadata.certificateIssueDate',
|
||||
'xpack.synthetics.synthetics.waterfallChart.labels.metadata.certificateIssueDate',
|
||||
{
|
||||
defaultMessage: 'Valid from',
|
||||
}
|
||||
),
|
||||
[Metadata.CertificateExpiryDate]: i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfallChart.labels.metadata.certificateExpiryDate',
|
||||
'xpack.synthetics.synthetics.waterfallChart.labels.metadata.certificateExpiryDate',
|
||||
{
|
||||
defaultMessage: 'Valid until',
|
||||
}
|
||||
),
|
||||
[Metadata.CertificateSubject]: i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfallChart.labels.metadata.certificateSubject',
|
||||
'xpack.synthetics.synthetics.waterfallChart.labels.metadata.certificateSubject',
|
||||
{
|
||||
defaultMessage: 'Common name',
|
||||
}
|
||||
),
|
||||
[Metadata.IP]: i18n.translate('xpack.uptime.synthetics.waterfallChart.labels.metadata.ip', {
|
||||
[Metadata.IP]: i18n.translate('xpack.synthetics.synthetics.waterfallChart.labels.metadata.ip', {
|
||||
defaultMessage: 'IP',
|
||||
}),
|
||||
};
|
||||
|
@ -158,35 +158,44 @@ export enum MimeType {
|
|||
}
|
||||
|
||||
export const FriendlyMimetypeLabels = {
|
||||
[MimeType.Html]: i18n.translate('xpack.uptime.synthetics.waterfallChart.labels.mimeTypes.html', {
|
||||
defaultMessage: 'HTML',
|
||||
}),
|
||||
[MimeType.Html]: i18n.translate(
|
||||
'xpack.synthetics.synthetics.waterfallChart.labels.mimeTypes.html',
|
||||
{
|
||||
defaultMessage: 'HTML',
|
||||
}
|
||||
),
|
||||
[MimeType.Script]: i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfallChart.labels.mimeTypes.script',
|
||||
'xpack.synthetics.synthetics.waterfallChart.labels.mimeTypes.script',
|
||||
{
|
||||
defaultMessage: 'JS',
|
||||
}
|
||||
),
|
||||
[MimeType.Stylesheet]: i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfallChart.labels.mimeTypes.stylesheet',
|
||||
'xpack.synthetics.synthetics.waterfallChart.labels.mimeTypes.stylesheet',
|
||||
{
|
||||
defaultMessage: 'CSS',
|
||||
}
|
||||
),
|
||||
[MimeType.Media]: i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfallChart.labels.mimeTypes.media',
|
||||
'xpack.synthetics.synthetics.waterfallChart.labels.mimeTypes.media',
|
||||
{
|
||||
defaultMessage: 'Media',
|
||||
}
|
||||
),
|
||||
[MimeType.Font]: i18n.translate('xpack.uptime.synthetics.waterfallChart.labels.mimeTypes.font', {
|
||||
defaultMessage: 'Font',
|
||||
}),
|
||||
[MimeType.XHR]: i18n.translate('xpack.uptime.synthetics.waterfallChart.labels.mimeTypes.xhr', {
|
||||
defaultMessage: 'XHR',
|
||||
}),
|
||||
[MimeType.Font]: i18n.translate(
|
||||
'xpack.synthetics.synthetics.waterfallChart.labels.mimeTypes.font',
|
||||
{
|
||||
defaultMessage: 'Font',
|
||||
}
|
||||
),
|
||||
[MimeType.XHR]: i18n.translate(
|
||||
'xpack.synthetics.synthetics.waterfallChart.labels.mimeTypes.xhr',
|
||||
{
|
||||
defaultMessage: 'XHR',
|
||||
}
|
||||
),
|
||||
[MimeType.Other]: i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfallChart.labels.mimeTypes.other',
|
||||
'xpack.synthetics.synthetics.waterfallChart.labels.mimeTypes.other',
|
||||
{
|
||||
defaultMessage: 'Other',
|
||||
}
|
||||
|
|
|
@ -17,9 +17,12 @@ import { extractItems } from './data_formatting';
|
|||
import { useStepWaterfallMetrics } from '../use_step_waterfall_metrics';
|
||||
import { JourneyStep } from '../../../../../../common/runtime_types';
|
||||
|
||||
export const NO_DATA_TEXT = i18n.translate('xpack.uptime.synthetics.stepDetail.waterfallNoData', {
|
||||
defaultMessage: 'No waterfall data could be found for this step',
|
||||
});
|
||||
export const NO_DATA_TEXT = i18n.translate(
|
||||
'xpack.synthetics.synthetics.stepDetail.waterfallNoData',
|
||||
{
|
||||
defaultMessage: 'No waterfall data could be found for this step',
|
||||
}
|
||||
);
|
||||
|
||||
interface Props {
|
||||
checkGroup: string;
|
||||
|
@ -60,9 +63,12 @@ export const WaterfallChartContainer: React.FC<Props> = ({ checkGroup, stepIndex
|
|||
<EuiFlexItem grow={false}>
|
||||
<EuiLoadingChart
|
||||
size="xl"
|
||||
aria-label={i18n.translate('xpack.uptime.synthetics.stepDetail.waterfall.loading', {
|
||||
defaultMessage: 'Waterfall chart loading',
|
||||
})}
|
||||
aria-label={i18n.translate(
|
||||
'xpack.synthetics.synthetics.stepDetail.waterfall.loading',
|
||||
{
|
||||
defaultMessage: 'Waterfall chart loading',
|
||||
}
|
||||
)}
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
|
@ -88,7 +94,7 @@ export const WaterfallChartContainer: React.FC<Props> = ({ checkGroup, stepIndex
|
|||
<EuiCallOut
|
||||
title={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.synthetics.stepDetail.waterfallUnsupported.title"
|
||||
id="xpack.synthetics.synthetics.stepDetail.waterfallUnsupported.title"
|
||||
defaultMessage="Waterfall chart unavailable"
|
||||
/>
|
||||
}
|
||||
|
@ -96,7 +102,7 @@ export const WaterfallChartContainer: React.FC<Props> = ({ checkGroup, stepIndex
|
|||
iconType="help"
|
||||
>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.synthetics.stepDetail.waterfallUnsupported.description"
|
||||
id="xpack.synthetics.synthetics.stepDetail.waterfallUnsupported.description"
|
||||
defaultMessage="The waterfall chart cannot be shown. You may be using an older version of the Synthetic Agent. Please check the version and consider upgrading."
|
||||
/>
|
||||
</EuiCallOut>
|
||||
|
|
|
@ -24,26 +24,26 @@ import { MiddleTruncatedText } from '../../waterfall';
|
|||
import { WaterfallMetadataEntry } from '../../waterfall/types';
|
||||
import { OnFlyoutClose } from '../../waterfall/components/use_flyout';
|
||||
|
||||
export const DETAILS = i18n.translate('xpack.uptime.synthetics.waterfall.flyout.details', {
|
||||
export const DETAILS = i18n.translate('xpack.synthetics.synthetics.waterfall.flyout.details', {
|
||||
defaultMessage: 'Details',
|
||||
});
|
||||
|
||||
export const CERTIFICATES = i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfall.flyout.certificates',
|
||||
'xpack.synthetics.synthetics.waterfall.flyout.certificates',
|
||||
{
|
||||
defaultMessage: 'Certificate headers',
|
||||
}
|
||||
);
|
||||
|
||||
export const REQUEST_HEADERS = i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfall.flyout.requestHeaders',
|
||||
'xpack.synthetics.synthetics.waterfall.flyout.requestHeaders',
|
||||
{
|
||||
defaultMessage: 'Request headers',
|
||||
}
|
||||
);
|
||||
|
||||
export const RESPONSE_HEADERS = i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfall.flyout.responseHeaders',
|
||||
'xpack.synthetics.synthetics.waterfall.flyout.responseHeaders',
|
||||
{
|
||||
defaultMessage: 'Response headers',
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
export const VIEW_PERFORMANCE = i18n.translate(
|
||||
'xpack.uptime.pingList.synthetics.performanceBreakDown',
|
||||
'xpack.synthetics.pingList.synthetics.performanceBreakDown',
|
||||
{
|
||||
defaultMessage: 'View performance breakdown',
|
||||
}
|
||||
|
|
|
@ -146,9 +146,12 @@ export const MiddleTruncatedText = ({
|
|||
type="lock"
|
||||
size="s"
|
||||
color="success"
|
||||
aria-label={i18n.translate('xpack.uptime.waterfallChart.sidebar.url.https', {
|
||||
defaultMessage: 'https',
|
||||
})}
|
||||
aria-label={i18n.translate(
|
||||
'xpack.synthetics.waterfallChart.sidebar.url.https',
|
||||
{
|
||||
defaultMessage: 'https',
|
||||
}
|
||||
)}
|
||||
/>
|
||||
)}
|
||||
<FirstChunk>{chunks.first}</FirstChunk>
|
||||
|
@ -170,7 +173,7 @@ export const MiddleTruncatedText = ({
|
|||
<EuiScreenReaderOnly>
|
||||
<span>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.synthetics.waterfall.resource.externalLink"
|
||||
id="xpack.synthetics.synthetics.waterfall.resource.externalLink"
|
||||
defaultMessage="Open resource in new tab"
|
||||
/>
|
||||
</span>
|
||||
|
|
|
@ -28,13 +28,13 @@ export const NetworkRequestsTotal = ({
|
|||
<NetworkRequestsTotalStyle size="xs" color="subdued">
|
||||
<strong>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.synthetics.waterfall.requestsTotalMessage"
|
||||
id="xpack.synthetics.synthetics.waterfall.requestsTotalMessage"
|
||||
defaultMessage="{numNetworkRequests} network requests"
|
||||
values={{
|
||||
numNetworkRequests:
|
||||
totalNetworkRequests > fetchedNetworkRequests ? (
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.synthetics.waterfall.requestsTotalMessage.first"
|
||||
id="xpack.synthetics.synthetics.waterfall.requestsTotalMessage.first"
|
||||
defaultMessage="First {count}"
|
||||
values={{ count: `${fetchedNetworkRequests}/${totalNetworkRequests}` }}
|
||||
/>
|
||||
|
@ -45,7 +45,7 @@ export const NetworkRequestsTotal = ({
|
|||
/>{' '}
|
||||
{showHighlightedNetworkRequests && highlightedNetworkRequests >= 0 && (
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.synthetics.waterfall.requestsHighlightedMessage"
|
||||
id="xpack.synthetics.synthetics.waterfall.requestsHighlightedMessage"
|
||||
defaultMessage="({numHighlightedRequests} match the filter)"
|
||||
values={{
|
||||
numHighlightedRequests: highlightedNetworkRequests,
|
||||
|
@ -56,9 +56,12 @@ export const NetworkRequestsTotal = ({
|
|||
{totalNetworkRequests > fetchedNetworkRequests && (
|
||||
<EuiIconTip
|
||||
type={'iInCircle'}
|
||||
content={i18n.translate('xpack.uptime.synthetics.waterfall.requestsTotalMessage.info', {
|
||||
defaultMessage: 'Waterfall view only shows up to 1000 requests',
|
||||
})}
|
||||
content={i18n.translate(
|
||||
'xpack.synthetics.synthetics.waterfall.requestsTotalMessage.info',
|
||||
{
|
||||
defaultMessage: 'Waterfall view only shows up to 1000 requests',
|
||||
}
|
||||
)}
|
||||
/>
|
||||
)}
|
||||
</NetworkRequestsTotalStyle>
|
||||
|
|
|
@ -8,42 +8,42 @@
|
|||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
export const FILTER_REQUESTS_LABEL = i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfall.searchBox.placeholder',
|
||||
'xpack.synthetics.synthetics.waterfall.searchBox.placeholder',
|
||||
{
|
||||
defaultMessage: 'Filter network requests',
|
||||
}
|
||||
);
|
||||
|
||||
export const FILTER_SCREENREADER_LABEL = i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfall.filterGroup.filterScreenreaderLabel',
|
||||
'xpack.synthetics.synthetics.waterfall.filterGroup.filterScreenreaderLabel',
|
||||
{
|
||||
defaultMessage: 'Filter by',
|
||||
}
|
||||
);
|
||||
|
||||
export const FILTER_REMOVE_SCREENREADER_LABEL = i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfall.filterGroup.removeFilterScreenReaderLabel',
|
||||
'xpack.synthetics.synthetics.waterfall.filterGroup.removeFilterScreenReaderLabel',
|
||||
{
|
||||
defaultMessage: 'Remove filter by',
|
||||
}
|
||||
);
|
||||
|
||||
export const FILTER_POPOVER_OPEN_LABEL = i18n.translate(
|
||||
'xpack.uptime.pingList.synthetics.waterfall.filters.popover',
|
||||
'xpack.synthetics.pingList.synthetics.waterfall.filters.popover',
|
||||
{
|
||||
defaultMessage: 'Click to open waterfall filters',
|
||||
}
|
||||
);
|
||||
|
||||
export const FILTER_COLLAPSE_REQUESTS_LABEL = i18n.translate(
|
||||
'xpack.uptime.pingList.synthetics.waterfall.filters.collapseRequestsLabel',
|
||||
'xpack.synthetics.pingList.synthetics.waterfall.filters.collapseRequestsLabel',
|
||||
{
|
||||
defaultMessage: 'Collapse to only show matching requests',
|
||||
}
|
||||
);
|
||||
|
||||
export const SIDEBAR_FILTER_MATCHES_SCREENREADER_LABEL = i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfall.sidebar.filterMatchesScreenReaderLabel',
|
||||
'xpack.synthetics.synthetics.waterfall.sidebar.filterMatchesScreenReaderLabel',
|
||||
{
|
||||
defaultMessage: 'Resource matches filter',
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ export function WaterfallMarkerIcon({ field, label }: { field: string; label: st
|
|||
if (!field) {
|
||||
return (
|
||||
<EuiIcon
|
||||
aria-label={i18n.translate('xpack.uptime.synthetics.markers.noFieldIcon.label', {
|
||||
aria-label={i18n.translate('xpack.synthetics.synthetics.markers.noFieldIcon.label', {
|
||||
defaultMessage: 'An icon indicating that this marker has no field associated with it',
|
||||
})}
|
||||
type="dot"
|
||||
|
@ -34,9 +34,12 @@ export function WaterfallMarkerIcon({ field, label }: { field: string; label: st
|
|||
zIndex={100}
|
||||
button={
|
||||
<EuiButtonIcon
|
||||
aria-label={i18n.translate('xpack.uptime.synthetics.markers.openEmbeddableButton.label', {
|
||||
defaultMessage: 'Use this icon button to show metrics for this annotation marker.',
|
||||
})}
|
||||
aria-label={i18n.translate(
|
||||
'xpack.synthetics.synthetics.markers.openEmbeddableButton.label',
|
||||
{
|
||||
defaultMessage: 'Use this icon button to show metrics for this annotation marker.',
|
||||
}
|
||||
)}
|
||||
iconType="dot"
|
||||
iconSize="l"
|
||||
color="text"
|
||||
|
|
|
@ -78,7 +78,7 @@ export function WaterfallChartMarkers() {
|
|||
{
|
||||
dataValue: offset,
|
||||
details: label,
|
||||
header: i18n.translate('xpack.uptime.synthetics.waterfall.offsetUnit', {
|
||||
header: i18n.translate('xpack.synthetics.synthetics.waterfall.offsetUnit', {
|
||||
defaultMessage: '{offset} ms',
|
||||
values: { offset },
|
||||
}),
|
||||
|
@ -149,27 +149,30 @@ const Wrapper = euiStyled.span`
|
|||
}
|
||||
`;
|
||||
|
||||
export const FCP_LABEL = i18n.translate('xpack.uptime.synthetics.waterfall.fcpLabel', {
|
||||
export const FCP_LABEL = i18n.translate('xpack.synthetics.synthetics.waterfall.fcpLabel', {
|
||||
defaultMessage: 'First contentful paint',
|
||||
});
|
||||
|
||||
export const LCP_LABEL = i18n.translate('xpack.uptime.synthetics.waterfall.lcpLabel', {
|
||||
export const LCP_LABEL = i18n.translate('xpack.synthetics.synthetics.waterfall.lcpLabel', {
|
||||
defaultMessage: 'Largest contentful paint',
|
||||
});
|
||||
|
||||
export const LAYOUT_SHIFT_LABEL = i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfall.layoutShiftLabel',
|
||||
'xpack.synthetics.synthetics.waterfall.layoutShiftLabel',
|
||||
{
|
||||
defaultMessage: 'Layout shift',
|
||||
}
|
||||
);
|
||||
|
||||
export const LOAD_EVENT_LABEL = i18n.translate('xpack.uptime.synthetics.waterfall.loadEventLabel', {
|
||||
defaultMessage: 'Load event',
|
||||
});
|
||||
export const LOAD_EVENT_LABEL = i18n.translate(
|
||||
'xpack.synthetics.synthetics.waterfall.loadEventLabel',
|
||||
{
|
||||
defaultMessage: 'Load event',
|
||||
}
|
||||
);
|
||||
|
||||
export const DOCUMENT_CONTENT_LOADED_LABEL = i18n.translate(
|
||||
'xpack.uptime.synthetics.waterfall.domContentLabel',
|
||||
'xpack.synthetics.synthetics.waterfall.domContentLabel',
|
||||
{
|
||||
defaultMessage: 'DOM Content Loaded',
|
||||
}
|
||||
|
|
|
@ -186,51 +186,57 @@ const WarningText = euiStyled(EuiText)`
|
|||
padding-left: 8px;
|
||||
`;
|
||||
|
||||
const DISCARD_LABEL = i18n.translate('xpack.uptime.monitorManagement.discardLabel', {
|
||||
const DISCARD_LABEL = i18n.translate('xpack.synthetics.monitorManagement.discardLabel', {
|
||||
defaultMessage: 'Discard',
|
||||
});
|
||||
|
||||
const SAVE_MONITOR_LABEL = i18n.translate('xpack.uptime.monitorManagement.saveMonitorLabel', {
|
||||
const SAVE_MONITOR_LABEL = i18n.translate('xpack.synthetics.monitorManagement.saveMonitorLabel', {
|
||||
defaultMessage: 'Save monitor',
|
||||
});
|
||||
|
||||
const UPDATE_MONITOR_LABEL = i18n.translate('xpack.uptime.monitorManagement.updateMonitorLabel', {
|
||||
defaultMessage: 'Update monitor',
|
||||
});
|
||||
const UPDATE_MONITOR_LABEL = i18n.translate(
|
||||
'xpack.synthetics.monitorManagement.updateMonitorLabel',
|
||||
{
|
||||
defaultMessage: 'Update monitor',
|
||||
}
|
||||
);
|
||||
|
||||
const RUN_TEST_LABEL = i18n.translate('xpack.uptime.monitorManagement.runTest', {
|
||||
const RUN_TEST_LABEL = i18n.translate('xpack.synthetics.monitorManagement.runTest', {
|
||||
defaultMessage: 'Run test',
|
||||
});
|
||||
|
||||
const RE_RUN_TEST_LABEL = i18n.translate('xpack.uptime.monitorManagement.reRunTest', {
|
||||
const RE_RUN_TEST_LABEL = i18n.translate('xpack.synthetics.monitorManagement.reRunTest', {
|
||||
defaultMessage: 'Re-run test',
|
||||
});
|
||||
|
||||
const VALIDATION_ERROR_LABEL = i18n.translate('xpack.uptime.monitorManagement.validationError', {
|
||||
defaultMessage: 'Your monitor has errors. Please fix them before saving.',
|
||||
});
|
||||
const VALIDATION_ERROR_LABEL = i18n.translate(
|
||||
'xpack.synthetics.monitorManagement.validationError',
|
||||
{
|
||||
defaultMessage: 'Your monitor has errors. Please fix them before saving.',
|
||||
}
|
||||
);
|
||||
|
||||
const MONITOR_SUCCESS_LABEL = i18n.translate(
|
||||
'xpack.uptime.monitorManagement.monitorAddedSuccessMessage',
|
||||
'xpack.synthetics.monitorManagement.monitorAddedSuccessMessage',
|
||||
{
|
||||
defaultMessage: 'Monitor added successfully.',
|
||||
}
|
||||
);
|
||||
|
||||
const MONITOR_UPDATED_SUCCESS_LABEL = i18n.translate(
|
||||
'xpack.uptime.monitorManagement.monitorEditedSuccessMessage',
|
||||
'xpack.synthetics.monitorManagement.monitorEditedSuccessMessage',
|
||||
{
|
||||
defaultMessage: 'Monitor updated successfully.',
|
||||
}
|
||||
);
|
||||
|
||||
const MONITOR_FAILURE_LABEL = i18n.translate(
|
||||
'xpack.uptime.monitorManagement.monitorFailureMessage',
|
||||
'xpack.synthetics.monitorManagement.monitorFailureMessage',
|
||||
{
|
||||
defaultMessage: 'Monitor was unable to be saved. Please try again later.',
|
||||
}
|
||||
);
|
||||
|
||||
const TEST_NOW_DESCRIPTION = i18n.translate('xpack.uptime.testRun.description', {
|
||||
const TEST_NOW_DESCRIPTION = i18n.translate('xpack.synthetics.testRun.description', {
|
||||
defaultMessage: 'Test your monitor and verify the results before saving',
|
||||
});
|
||||
|
|
|
@ -135,47 +135,47 @@ export const AddMonitorBtn = () => {
|
|||
);
|
||||
};
|
||||
|
||||
const ADD_MONITOR_LABEL = i18n.translate('xpack.uptime.monitorManagement.addMonitorLabel', {
|
||||
const ADD_MONITOR_LABEL = i18n.translate('xpack.synthetics.monitorManagement.addMonitorLabel', {
|
||||
defaultMessage: 'Add monitor',
|
||||
});
|
||||
|
||||
const SYNTHETICS_ENABLE_LABEL = i18n.translate(
|
||||
'xpack.uptime.monitorManagement.syntheticsEnableLabel',
|
||||
'xpack.synthetics.monitorManagement.syntheticsEnableLabel',
|
||||
{
|
||||
defaultMessage: 'Enable',
|
||||
}
|
||||
);
|
||||
|
||||
const SYNTHETICS_ENABLE_FAILURE = i18n.translate(
|
||||
'xpack.uptime.monitorManagement.syntheticsEnabledFailure',
|
||||
'xpack.synthetics.monitorManagement.syntheticsEnabledFailure',
|
||||
{
|
||||
defaultMessage: 'Monitor Management was not able to be enabled. Please contact support.',
|
||||
}
|
||||
);
|
||||
|
||||
const SYNTHETICS_DISABLE_FAILURE = i18n.translate(
|
||||
'xpack.uptime.monitorManagement.syntheticsDisabledFailure',
|
||||
'xpack.synthetics.monitorManagement.syntheticsDisabledFailure',
|
||||
{
|
||||
defaultMessage: 'Monitor Management was not able to be disabled. Please contact support.',
|
||||
}
|
||||
);
|
||||
|
||||
const SYNTHETICS_ENABLE_SUCCESS = i18n.translate(
|
||||
'xpack.uptime.monitorManagement.syntheticsEnableSuccess',
|
||||
'xpack.synthetics.monitorManagement.syntheticsEnableSuccess',
|
||||
{
|
||||
defaultMessage: 'Monitor Management enabled successfully.',
|
||||
}
|
||||
);
|
||||
|
||||
const SYNTHETICS_DISABLE_SUCCESS = i18n.translate(
|
||||
'xpack.uptime.monitorManagement.syntheticsDisabledSuccess',
|
||||
'xpack.synthetics.monitorManagement.syntheticsDisabledSuccess',
|
||||
{
|
||||
defaultMessage: 'Monitor Management disabled successfully.',
|
||||
}
|
||||
);
|
||||
|
||||
const SYNTHETICS_DISABLED_MESSAGE = i18n.translate(
|
||||
'xpack.uptime.monitorManagement.syntheticsDisabled',
|
||||
'xpack.synthetics.monitorManagement.syntheticsDisabled',
|
||||
{
|
||||
defaultMessage:
|
||||
'Monitor Management is currently disabled. Please contact an administrator to enable Monitor Management.',
|
||||
|
@ -183,7 +183,7 @@ const SYNTHETICS_DISABLED_MESSAGE = i18n.translate(
|
|||
);
|
||||
|
||||
const SYNTHETICS_ENABLE_TOOL_TIP_MESSAGE = i18n.translate(
|
||||
'xpack.uptime.monitorManagement.syntheticsEnableToolTip',
|
||||
'xpack.synthetics.monitorManagement.syntheticsEnableToolTip',
|
||||
{
|
||||
defaultMessage:
|
||||
'Enable Monitor Management to create lightweight and real-browser monitors from locations around the world.',
|
||||
|
@ -191,7 +191,7 @@ const SYNTHETICS_ENABLE_TOOL_TIP_MESSAGE = i18n.translate(
|
|||
);
|
||||
|
||||
const SYNTHETICS_DISABLE_TOOL_TIP_MESSAGE = i18n.translate(
|
||||
'xpack.uptime.monitorManagement.syntheticsDisableToolTip',
|
||||
'xpack.synthetics.monitorManagement.syntheticsDisableToolTip',
|
||||
{
|
||||
defaultMessage:
|
||||
'Disabling Monitor Management will immediately stop the execution of monitors in all test locations and prevent the creation of new monitors.',
|
||||
|
@ -199,7 +199,7 @@ const SYNTHETICS_DISABLE_TOOL_TIP_MESSAGE = i18n.translate(
|
|||
);
|
||||
|
||||
const API_KEYS_DISABLED_TOOL_TIP_MESSAGE = i18n.translate(
|
||||
'xpack.uptime.monitorManagement.apiKeysDisabledToolTip',
|
||||
'xpack.synthetics.monitorManagement.apiKeysDisabledToolTip',
|
||||
{
|
||||
defaultMessage:
|
||||
'API Keys are disabled for this cluster. Monitor Management requires the use of API keys to write back to your Elasticsearch cluster. To enable API keys, please contact an administrator.',
|
||||
|
|
|
@ -8,28 +8,28 @@
|
|||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
export const SYNTHETICS_ENABLE_FAILURE = i18n.translate(
|
||||
'xpack.uptime.monitorManagement.syntheticsEnabledFailure',
|
||||
'xpack.synthetics.monitorManagement.syntheticsEnabledFailure',
|
||||
{
|
||||
defaultMessage: 'Monitor Management was not able to be enabled. Please contact support.',
|
||||
}
|
||||
);
|
||||
|
||||
export const SYNTHETICS_DISABLE_FAILURE = i18n.translate(
|
||||
'xpack.uptime.monitorManagement.syntheticsDisabledFailure',
|
||||
'xpack.synthetics.monitorManagement.syntheticsDisabledFailure',
|
||||
{
|
||||
defaultMessage: 'Monitor Management was not able to be disabled. Please contact support.',
|
||||
}
|
||||
);
|
||||
|
||||
export const SYNTHETICS_ENABLE_SUCCESS = i18n.translate(
|
||||
'xpack.uptime.monitorManagement.syntheticsEnableSuccess',
|
||||
'xpack.synthetics.monitorManagement.syntheticsEnableSuccess',
|
||||
{
|
||||
defaultMessage: 'Monitor Management enabled successfully.',
|
||||
}
|
||||
);
|
||||
|
||||
export const SYNTHETICS_DISABLE_SUCCESS = i18n.translate(
|
||||
'xpack.uptime.monitorManagement.syntheticsDisabledSuccess',
|
||||
'xpack.synthetics.monitorManagement.syntheticsDisabledSuccess',
|
||||
{
|
||||
defaultMessage: 'Monitor Management disabled successfully.',
|
||||
}
|
||||
|
|
|
@ -80,20 +80,20 @@ export function useRunOnceErrors({
|
|||
};
|
||||
}
|
||||
|
||||
const PushErrorLabel = i18n.translate('xpack.uptime.testRun.pushErrorLabel', {
|
||||
const PushErrorLabel = i18n.translate('xpack.synthetics.testRun.pushErrorLabel', {
|
||||
defaultMessage: 'Push error',
|
||||
});
|
||||
|
||||
const RunErrorLabel = i18n.translate('xpack.uptime.testRun.runErrorLabel', {
|
||||
const RunErrorLabel = i18n.translate('xpack.synthetics.testRun.runErrorLabel', {
|
||||
defaultMessage: 'Error running test',
|
||||
});
|
||||
|
||||
const getLocationTestErrorLabel = (locationName: string) =>
|
||||
i18n.translate('xpack.uptime.testRun.runErrorLocation', {
|
||||
i18n.translate('xpack.synthetics.testRun.runErrorLocation', {
|
||||
defaultMessage: 'Failed to run monitor on location {locationName}.',
|
||||
values: { locationName },
|
||||
});
|
||||
|
||||
const PushErrorService = i18n.translate('xpack.uptime.testRun.pushError', {
|
||||
const PushErrorService = i18n.translate('xpack.synthetics.testRun.pushError', {
|
||||
defaultMessage: 'Failed to push the monitor to service.',
|
||||
});
|
||||
|
|
|
@ -70,14 +70,14 @@ export const ServiceLocations = ({ selectedLocations, setLocations, isInvalid, o
|
|||
};
|
||||
|
||||
const VALIDATION_ERROR = i18n.translate(
|
||||
'xpack.uptime.monitorManagement.serviceLocationsValidationError',
|
||||
'xpack.synthetics.monitorManagement.serviceLocationsValidationError',
|
||||
{
|
||||
defaultMessage: 'At least one service location must be specified',
|
||||
}
|
||||
);
|
||||
|
||||
export const LOCATIONS_LABEL = i18n.translate(
|
||||
'xpack.uptime.monitorManagement.monitorLocationsLabel',
|
||||
'xpack.synthetics.monitorManagement.monitorLocationsLabel',
|
||||
{
|
||||
defaultMessage: 'Monitor locations',
|
||||
}
|
||||
|
|
|
@ -35,14 +35,14 @@ export const MonitorManagementAdvancedFields = memo<Props>(
|
|||
title={
|
||||
<h4>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorManagement.monitorAdvancedOptions.dataStreamConfiguration.title"
|
||||
id="xpack.synthetics.monitorManagement.monitorAdvancedOptions.dataStreamConfiguration.title"
|
||||
defaultMessage="Data stream settings"
|
||||
/>
|
||||
</h4>
|
||||
}
|
||||
description={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorManagement.monitorAdvancedOptions.dataStreamConfiguration.description"
|
||||
id="xpack.synthetics.monitorManagement.monitorAdvancedOptions.dataStreamConfiguration.description"
|
||||
defaultMessage="Configure additional Data Stream options."
|
||||
/>
|
||||
}
|
||||
|
@ -54,13 +54,13 @@ export const MonitorManagementAdvancedFields = memo<Props>(
|
|||
error={namespaceErrorMsg}
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorManagement.monitorAdvancedOptions.monitorNamespaceFieldLabel"
|
||||
id="xpack.synthetics.monitorManagement.monitorAdvancedOptions.monitorNamespaceFieldLabel"
|
||||
defaultMessage="Namespace"
|
||||
/>
|
||||
}
|
||||
helpText={
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorManagement.monitorAdvancedOptions.namespaceHelpLabel"
|
||||
id="xpack.synthetics.monitorManagement.monitorAdvancedOptions.namespaceHelpLabel"
|
||||
defaultMessage="Change the default namespace. This setting changes the name of the monitor's data stream. {learnMore}."
|
||||
values={{
|
||||
learnMore: (
|
||||
|
@ -70,7 +70,7 @@ export const MonitorManagementAdvancedFields = memo<Props>(
|
|||
external
|
||||
>
|
||||
<FormattedMessage
|
||||
id="xpack.uptime.monitorManagement.monitorAdvancedOptions.namespaceHelpLearnMoreLabel"
|
||||
id="xpack.synthetics.monitorManagement.monitorAdvancedOptions.namespaceHelpLearnMoreLabel"
|
||||
defaultMessage="Learn More"
|
||||
/>
|
||||
</EuiLink>
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue