diff --git a/x-pack/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/table.tsx b/x-pack/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/table.tsx index 6af8a8dd127d8..d0b26f4e5dca5 100644 --- a/x-pack/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/table.tsx +++ b/x-pack/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/table.tsx @@ -234,14 +234,13 @@ const AnomalyMessage = ({ }: { actual: number; typical: number; - type: string; + type: AnomalyType; }) => { - const messageType = type === 'logRate' ? 'dataset' : 'category'; const moreThanExpectedAnomalyMessage = i18n.translate( 'xpack.infra.logs.analysis.anomaliesTableMoreThanExpectedAnomalyMessage', { - defaultMessage: 'higher log messages in this {messageType} than expected', - values: { messageType }, + defaultMessage: 'higher log messages in this {type, select, logRate {dataset}, logCategory {category}} than expected', + values: { type }, } );