Skip to content

Commit

Permalink
Add correction steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Zacqary committed Oct 14, 2021
1 parent b7d76fe commit a30ebb6
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions x-pack/plugins/infra/server/deprecations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ const FIELD_DEPRECATION_FACTORIES: Record<string, (configNames: string[]) => Dep
configNames
),
correctiveActions: {
manualSteps: [],
manualSteps: [
i18n.translate('xpack.infra.deprecations.timestampAdjustIndexing', {
defaultMessage: 'Adjust your indexing to use "@timestamp" as a timestamp.',
}),
],
},
}),
tiebreaker: (configNames) => ({
Expand All @@ -66,7 +70,11 @@ const FIELD_DEPRECATION_FACTORIES: Record<string, (configNames: string[]) => Dep
configNames
),
correctiveActions: {
manualSteps: [],
manualSteps: [
i18n.translate('xpack.infra.deprecations.tiebreakerAdjustIndexing', {
defaultMessage: 'Adjust your indexing to use "_doc" as a tiebreaker.',
}),
],
},
}),
host: (configNames) => ({
Expand All @@ -82,7 +90,11 @@ const FIELD_DEPRECATION_FACTORIES: Record<string, (configNames: string[]) => Dep
configNames
),
correctiveActions: {
manualSteps: [],
manualSteps: [
i18n.translate('xpack.infra.deprecations.hostAdjustIndexing', {
defaultMessage: 'Adjust your indexing to identify hosts using "host.name"',
}),
],
},
}),
pod: (configNames) => ({
Expand All @@ -96,7 +108,12 @@ const FIELD_DEPRECATION_FACTORIES: Record<string, (configNames: string[]) => Dep
configNames
),
correctiveActions: {
manualSteps: [],
manualSteps: [
i18n.translate('xpack.infra.deprecations.podAdjustIndexing', {
defaultMessage:
'Adjust your indexing to identify Kubernetes pods using "kubernetes.pod.uid"',
}),
],
},
}),
container: (configNames) => ({
Expand All @@ -112,7 +129,12 @@ const FIELD_DEPRECATION_FACTORIES: Record<string, (configNames: string[]) => Dep
configNames
),
correctiveActions: {
manualSteps: [],
manualSteps: [
i18n.translate('xpack.infra.deprecations.containerAdjustIndexing', {
defaultMessage:
'Adjust your indexing to identify Docker containers using "container.id"',
}),
],
},
}),
};
Expand Down

0 comments on commit a30ebb6

Please sign in to comment.