[Fleet] Add missing documentation link on integrations page (#116453) (#116600)

* add missing doc link

* node scripts/check_published_api_changes.js --accept

Co-authored-by: Mark Hopkin <mark.hopkin@elastic.co>
This commit is contained in:
Kibana Machine 2021-11-01 10:43:11 -04:00 committed by GitHub
parent a0a6f0ee73
commit 1d79ea46cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 18 deletions

View file

@ -230,6 +230,7 @@ readonly links: {
readonly ingest: Record<string, string>;
readonly fleet: Readonly<{
datastreamsILM: string;
beatsAgentComparison: string;
guide: string;
fleetServer: string;
fleetServerAddFleetServer: string;

File diff suppressed because one or more lines are too long

View file

@ -479,6 +479,7 @@ export class DocLinksService {
settingsFleetServerHostSettings: `${FLEET_DOCS}fleet-settings.html#fleet-server-hosts-setting`,
troubleshooting: `${FLEET_DOCS}fleet-troubleshooting.html`,
elasticAgent: `${FLEET_DOCS}elastic-agent-installation.html`,
beatsAgentComparison: `${FLEET_DOCS}beats-agent-comparison.html`,
datastreams: `${FLEET_DOCS}data-streams.html`,
datastreamsILM: `${FLEET_DOCS}data-streams.html#data-streams-ilm`,
datastreamsNamingScheme: `${FLEET_DOCS}data-streams.html#data-streams-naming-scheme`,
@ -736,6 +737,7 @@ export interface DocLinksStart {
readonly ingest: Record<string, string>;
readonly fleet: Readonly<{
datastreamsILM: string;
beatsAgentComparison: string;
guide: string;
fleetServer: string;
fleetServerAddFleetServer: string;

View file

@ -697,6 +697,7 @@ export interface DocLinksStart {
readonly ingest: Record<string, string>;
readonly fleet: Readonly<{
datastreamsILM: string;
beatsAgentComparison: string;
guide: string;
fleetServer: string;
fleetServerAddFleetServer: string;

View file

@ -22,6 +22,8 @@ import {
EuiFlexItem,
} from '@elastic/eui';
import { useStartServices } from '../../../hooks';
export type IntegrationPreferenceType = 'recommended' | 'beats' | 'agent';
interface Option {
@ -34,23 +36,6 @@ export interface Props {
onChange: (type: IntegrationPreferenceType) => void;
}
const link = (
<EuiLink href="#">
<FormattedMessage
id="xpack.fleet.epm.integrationPreference.titleLink"
defaultMessage="Elastic Agent and Beats"
/>
</EuiLink>
);
const title = (
<FormattedMessage
id="xpack.fleet.epm.integrationPreference.title"
defaultMessage="If an integration is available for {link}, show:"
values={{ link }}
/>
);
const recommendedTooltip = (
<FormattedMessage
id="xpack.fleet.epm.integrationPreference.recommendedTooltip"
@ -94,6 +79,26 @@ const options: Option[] = [
export const IntegrationPreference = ({ initialType, onChange }: Props) => {
const [idSelected, setIdSelected] = React.useState<IntegrationPreferenceType>(initialType);
const { docLinks } = useStartServices();
const link = (
<EuiLink href={docLinks.links.fleet.beatsAgentComparison}>
<FormattedMessage
id="xpack.fleet.epm.integrationPreference.titleLink"
defaultMessage="Elastic Agent and Beats"
/>
</EuiLink>
);
const title = (
<FormattedMessage
id="xpack.fleet.epm.integrationPreference.title"
defaultMessage="If an integration is available for {link}, show:"
values={{ link }}
/>
);
const radios = options.map((option) => ({
id: option.type,
value: option.type,