-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.6] [Synthetics] Deprecate adding synthetics integrations from fleet (
#146369) (#146629) # Backport This will backport the following commits from `main` to `8.6`: - [[Synthetics] Deprecate adding synthetics integrations from fleet (#146369)](#146369) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Shahzad","email":"[email protected]"},"sourceCommit":{"committedDate":"2022-11-29T20:29:26Z","message":"[Synthetics] Deprecate adding synthetics integrations from fleet (#146369)\n\nCo-authored-by: florent-leborgne <[email protected]>\r\nFixes https://github.com/elastic/kibana/issues/137501","sha":"d13666885469c354bdb55c7bb84f127d23b1b83f","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:uptime","release_note:skip","Team:Fleet","v8.6.0","v8.7.0"],"number":146369,"url":"https://github.com/elastic/kibana/pull/146369","mergeCommit":{"message":"[Synthetics] Deprecate adding synthetics integrations from fleet (#146369)\n\nCo-authored-by: florent-leborgne <[email protected]>\r\nFixes https://github.com/elastic/kibana/issues/137501","sha":"d13666885469c354bdb55c7bb84f127d23b1b83f"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/146369","number":146369,"mergeCommit":{"message":"[Synthetics] Deprecate adding synthetics integrations from fleet (#146369)\n\nCo-authored-by: florent-leborgne <[email protected]>\r\nFixes https://github.com/elastic/kibana/issues/137501","sha":"d13666885469c354bdb55c7bb84f127d23b1b83f"}}]}] BACKPORT--> Co-authored-by: Shahzad <[email protected]>
- Loading branch information
1 parent
42bf33f
commit c9fe5ac
Showing
24 changed files
with
137 additions
and
2,558 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 101 additions & 0 deletions
101
...ugins/synthetics/public/legacy_uptime/components/fleet_package/deprecate_notice_modal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiConfirmModal, EuiIcon, EuiLink } from '@elastic/eui'; | ||
import { useKibana } from '@kbn/kibana-react-plugin/public'; | ||
import { i18n } from '@kbn/i18n'; | ||
import { FormattedMessage } from '@kbn/i18n-react'; | ||
|
||
export const DeprecateNoticeModal = ({ onCancel }: { onCancel: () => void }) => { | ||
const { application } = useKibana().services; | ||
|
||
return ( | ||
<EuiConfirmModal | ||
title={ | ||
<> | ||
{HEADER_TEXT} <EuiIcon type="cheer" /> | ||
</> | ||
} | ||
onCancel={onCancel} | ||
onConfirm={() => { | ||
application?.navigateToApp('uptime', { path: '/manage-monitors' }); | ||
}} | ||
confirmButtonText={GO_MONITOR_MANAGEMENT_TEXT} | ||
cancelButtonText={GO_BACK_TEXT} | ||
> | ||
<p> | ||
<FormattedMessage | ||
id="xpack.synthetics.deprecateNoticeModal.description" | ||
defaultMessage="The Elastic Synthetics integration is deprecated. Instead, you can now monitor endpoints, | ||
pages, and user journeys directly from Uptime much more efficiently:" | ||
/> | ||
</p> | ||
<p> | ||
<li> | ||
<FormattedMessage | ||
id="xpack.synthetics.deprecateNoticeModal.addPrivateLocations" | ||
defaultMessage="Add private locations against your fleet policies" | ||
/> | ||
</li> | ||
<li> | ||
<FormattedMessage | ||
id="xpack.synthetics.deprecateNoticeModal.manageMonitors" | ||
defaultMessage="Manage lightweight and browser monitors from a single place" | ||
/> | ||
</li> | ||
<li> | ||
<FormattedMessage | ||
id="xpack.synthetics.deprecateNoticeModal.elasticManagedLocations" | ||
defaultMessage="Run monitors in multiple locations managed by Elastic, or from your own private locations" | ||
/> | ||
</li> | ||
<li> | ||
<FormattedMessage | ||
id="xpack.synthetics.deprecateNoticeModal.automateMonitors" | ||
defaultMessage="Automate the creation of your monitors using project monitors" | ||
/> | ||
</li> | ||
</p> | ||
<p> | ||
<FormattedMessage | ||
id="xpack.synthetics.deprecateNoticeModal.forMoreInformation" | ||
defaultMessage="For more information, {docsLink}" | ||
values={{ | ||
docsLink: ( | ||
<EuiLink | ||
target="_blank" | ||
href="https://www.elastic.co/guide/en/observability/current/monitor-uptime-synthetics.html" | ||
> | ||
{READ_DOCS_TEXT} | ||
</EuiLink> | ||
), | ||
}} | ||
/> | ||
</p> | ||
</EuiConfirmModal> | ||
); | ||
}; | ||
|
||
const HEADER_TEXT = i18n.translate('xpack.synthetics.deprecateNoticeModal.headerText', { | ||
defaultMessage: 'Synthetic Monitoring is now available out of the box in Uptime', | ||
}); | ||
|
||
const GO_BACK_TEXT = i18n.translate('xpack.synthetics.deprecateNoticeModal.goBack', { | ||
defaultMessage: 'Go back', | ||
}); | ||
|
||
const READ_DOCS_TEXT = i18n.translate('xpack.synthetics.deprecateNoticeModal.readDocs', { | ||
defaultMessage: 'read docs.', | ||
}); | ||
|
||
const GO_MONITOR_MANAGEMENT_TEXT = i18n.translate( | ||
'xpack.synthetics.deprecateNoticeModal.goToMonitorManagement', | ||
{ | ||
defaultMessage: 'Go to Monitor Management', | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.