-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Synthetics] Deprecate adding synthetics integrations from fleet #146369
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
707e575
Add redirect from synthetics intgerations
shahzad31 4b0455c
lint
shahzad31 073fc56
Update x-pack/plugins/synthetics/public/legacy_uptime/components/flee…
shahzad31 70436de
Update x-pack/plugins/synthetics/public/legacy_uptime/components/flee…
shahzad31 5dece86
Update x-pack/plugins/synthetics/public/legacy_uptime/components/flee…
shahzad31 8739885
Update x-pack/plugins/synthetics/public/legacy_uptime/components/flee…
shahzad31 56d8090
Update x-pack/plugins/synthetics/public/legacy_uptime/components/flee…
shahzad31 9ee6571
Merge branch 'main' of github.com:elastic/kibana into redirect-intege…
shahzad31 f86ad41
PR feedback
shahzad31 0abc569
test
shahzad31 8330b17
more test
shahzad31 27d5b02
test
shahzad31 802fefe
update link
shahzad31 3208279
test
shahzad31 626bf63
update
shahzad31 9c921f4
Merge branch 'main' into redirect-integeration
shahzad31 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit it's probably possible to use the doclink service here to get that link looks like there is already a key for
observability.monitorUptimeSynthetics