Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Cowan <chris@chriscowan.us>
  • Loading branch information
Zacqary and simianhacker authored Oct 15, 2021
1 parent 5112efc commit 1468fc9
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions x-pack/plugins/infra/server/deprecations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ const FIELD_DEPRECATION_FACTORIES: Record<string, (configNames: string[]) => 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' },
}),
],
},
Expand All @@ -72,7 +73,8 @@ const FIELD_DEPRECATION_FACTORIES: Record<string, (configNames: string[]) => 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' },
}),
],
},
Expand All @@ -92,7 +94,8 @@ const FIELD_DEPRECATION_FACTORIES: Record<string, (configNames: string[]) => 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' },
}),
],
},
Expand All @@ -111,7 +114,8 @@ const FIELD_DEPRECATION_FACTORIES: Record<string, (configNames: string[]) => 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' },
}),
],
},
Expand All @@ -132,7 +136,8 @@ const FIELD_DEPRECATION_FACTORIES: Record<string, (configNames: string[]) => 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' },
}),
],
},
Expand Down

0 comments on commit 1468fc9

Please sign in to comment.