[Fleet] Add link to integration data retention documentation (#115353)

* add ILM policy help text

* update API docs

* change link

* regen api docs
This commit is contained in:
Mark Hopkin 2021-10-25 19:54:11 +01:00 committed by GitHub
parent 5947cee096
commit a266b2d426
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 33 additions and 1 deletions

View file

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

File diff suppressed because one or more lines are too long

View file

@ -480,6 +480,7 @@ export class DocLinksService {
troubleshooting: `${FLEET_DOCS}fleet-troubleshooting.html`,
elasticAgent: `${FLEET_DOCS}elastic-agent-installation.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`,
installElasticAgent: `${FLEET_DOCS}install-fleet-managed-elastic-agent.html`,
upgradeElasticAgent: `${FLEET_DOCS}upgrade-elastic-agent.html`,
@ -734,6 +735,7 @@ export interface DocLinksStart {
readonly snapshotRestore: Record<string, string>;
readonly ingest: Record<string, string>;
readonly fleet: Readonly<{
datastreamsILM: string;
guide: string;
fleetServer: string;
fleetServerAddFleetServer: string;

View file

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

View file

@ -312,6 +312,34 @@ export const StepDefinePackagePolicy: React.FunctionComponent<{
/>
</EuiFormRow>
</EuiFlexItem>
<EuiFlexItem>
<EuiFormRow
label={
<FormattedMessage
id="xpack.fleet.createPackagePolicy.stepConfigure.packagePolicyDataRetentionLabel"
defaultMessage="Data retention settings"
/>
}
helpText={
<FormattedMessage
id="xpack.fleet.createPackagePolicy.stepConfigure.packagePolicyDataRetentionText"
defaultMessage="By default all logs and metrics data are stored on the hot tier. {learnMore} about changing the data retention policy for this integration."
values={{
learnMore: (
<EuiLink href={docLinks.links.fleet.datastreamsILM} target="_blank">
{i18n.translate(
'xpack.fleet.createPackagePolicy.stepConfigure.packagePolicyDataRetentionLearnMoreLink',
{ defaultMessage: 'Learn more' }
)}
</EuiLink>
),
}}
/>
}
>
<div />
</EuiFormRow>
</EuiFlexItem>
{/* Advanced vars */}
{advancedVars.map((varDef) => {
const { name: varName, type: varType } = varDef;