From 1468fc97e5fd3be1ee9ef925ce63f52a9e344d44 Mon Sep 17 00:00:00 2001 From: Zacqary Adam Xeper Date: Fri, 15 Oct 2021 16:59:05 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Chris Cowan --- x-pack/plugins/infra/server/deprecations.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/x-pack/plugins/infra/server/deprecations.ts b/x-pack/plugins/infra/server/deprecations.ts index 790889711ec87..64171c799af28 100644 --- a/x-pack/plugins/infra/server/deprecations.ts +++ b/x-pack/plugins/infra/server/deprecations.ts @@ -52,7 +52,8 @@ const FIELD_DEPRECATION_FACTORIES: Record Dep correctiveActions: { manualSteps: [ i18n.translate('xpack.infra.deprecations.timestampAdjustIndexing', { - defaultMessage: 'Adjust your indexing to use "@timestamp" as a timestamp.', + defaultMessage: 'Adjust your indexing to use "{field}" as a timestamp.', + values: { field: '@timestamp' }, }), ], }, @@ -72,7 +73,8 @@ const FIELD_DEPRECATION_FACTORIES: Record Dep correctiveActions: { manualSteps: [ i18n.translate('xpack.infra.deprecations.tiebreakerAdjustIndexing', { - defaultMessage: 'Adjust your indexing to use "_doc" as a tiebreaker.', + defaultMessage: 'Adjust your indexing to use "{field}" as a tiebreaker.', + values: { field: '_doc' }, }), ], }, @@ -92,7 +94,8 @@ const FIELD_DEPRECATION_FACTORIES: Record Dep correctiveActions: { manualSteps: [ i18n.translate('xpack.infra.deprecations.hostAdjustIndexing', { - defaultMessage: 'Adjust your indexing to identify hosts using "host.name"', + defaultMessage: 'Adjust your indexing to identify hosts using "{field}"', + values: { field: 'host.name' }, }), ], }, @@ -111,7 +114,8 @@ const FIELD_DEPRECATION_FACTORIES: Record Dep manualSteps: [ i18n.translate('xpack.infra.deprecations.podAdjustIndexing', { defaultMessage: - 'Adjust your indexing to identify Kubernetes pods using "kubernetes.pod.uid"', + 'Adjust your indexing to identify Kubernetes pods using "{field}"', + values: { field: 'kubernetes.pod.uid' }, }), ], }, @@ -132,7 +136,8 @@ const FIELD_DEPRECATION_FACTORIES: Record Dep manualSteps: [ i18n.translate('xpack.infra.deprecations.containerAdjustIndexing', { defaultMessage: - 'Adjust your indexing to identify Docker containers using "container.id"', + 'Adjust your indexing to identify Docker containers using "{field}"', + values: { field: 'container.id' }, }), ], },