From a2c1d2f25c6e35516f643c85581ff32b5466fcc1 Mon Sep 17 00:00:00 2001 From: Kerry Gallagher Date: Mon, 13 Jul 2020 11:35:19 +0100 Subject: [PATCH] Update x-pack/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/table.tsx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Felix Stürmer --- .../pages/logs/log_entry_rate/sections/anomalies/table.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 }, } );