From 2bbba0cb2025d90a78296ef3da99b56b59fca7b4 Mon Sep 17 00:00:00 2001 From: Valeriy Khakhutskyy <1292899+valeriy42@users.noreply.github.com> Date: Thu, 17 Nov 2022 12:48:36 +0100 Subject: [PATCH] [ML] Fix typo and upper confidence bound field (#145526) This PR fixes minor typos and assigns the correct value to the upper confidence bound. Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit a00f1300eb364f3dd8d51778aadc7b156956a2d8) --- .../anomalies_table/anomaly_details_utils.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/ml/public/application/components/anomalies_table/anomaly_details_utils.tsx b/x-pack/plugins/ml/public/application/components/anomalies_table/anomaly_details_utils.tsx index 17d479de1db8d..b40123a9e2ddf 100644 --- a/x-pack/plugins/ml/public/application/components/anomalies_table/anomaly_details_utils.tsx +++ b/x-pack/plugins/ml/public/application/components/anomalies_table/anomaly_details_utils.tsx @@ -192,14 +192,19 @@ export const DetailsItems: FC<{ ) { items.push({ title: i18n.translate('xpack.ml.anomaliesTable.anomalyDetails.upperBoundsTitle', { - defaultMessage: 'Upper bounds', + defaultMessage: 'Upper bound', }), - description: formatValue(anomaly.typical, source.function, undefined, source), + description: formatValue( + anomaly.source.anomaly_score_explanation?.upper_confidence_bound, + source.function, + undefined, + source + ), }); items.push({ title: i18n.translate('xpack.ml.anomaliesTable.anomalyDetails.lowerBoundsTitle', { - defaultMessage: 'Lower bounds', + defaultMessage: 'Lower bound', }), description: formatValue( anomaly.source.anomaly_score_explanation?.lower_confidence_bound,