Skip to content

Commit ac95f4a

Browse files
kibanamachinerbrtj
andauthored
[8.19] [ML] Anomaly Detection: Removes severity label from anomaly description (#225991) (#226100)
# Backport This will backport the following commits from `main` to `8.19`: - [[ML] Anomaly Detection: Removes severity label from anomaly description (#225991)](#225991) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Robert Jaszczurek","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-07-02T08:03:16Z","message":"[ML] Anomaly Detection: Removes severity label from anomaly description (#225991)\n\nThis PR removes the severity label from the anomaly description in\nanomalies table and anomaly message (alerting).\n\nBefore:\n<img width=\"950\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/5753710c-05d0-49d8-9a4b-21d64425a16f\"\n/>\n\nAfter:\n<img width=\"943\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/9b701bbf-fdbf-4602-a74d-1a7036b78ede\"\n/>","sha":"28a0a1f526a458652751ca22ba25e2a32dba4b04","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","release_note:skip","Team:ML","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[ML] Anomaly Detection: Removes severity label from anomaly description","number":225991,"url":"https://github.com/elastic/kibana/pull/225991","mergeCommit":{"message":"[ML] Anomaly Detection: Removes severity label from anomaly description (#225991)\n\nThis PR removes the severity label from the anomaly description in\nanomalies table and anomaly message (alerting).\n\nBefore:\n<img width=\"950\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/5753710c-05d0-49d8-9a4b-21d64425a16f\"\n/>\n\nAfter:\n<img width=\"943\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/9b701bbf-fdbf-4602-a74d-1a7036b78ede\"\n/>","sha":"28a0a1f526a458652751ca22ba25e2a32dba4b04"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/225991","number":225991,"mergeCommit":{"message":"[ML] Anomaly Detection: Removes severity label from anomaly description (#225991)\n\nThis PR removes the severity label from the anomaly description in\nanomalies table and anomaly message (alerting).\n\nBefore:\n<img width=\"950\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/5753710c-05d0-49d8-9a4b-21d64425a16f\"\n/>\n\nAfter:\n<img width=\"943\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/9b701bbf-fdbf-4602-a74d-1a7036b78ede\"\n/>","sha":"28a0a1f526a458652751ca22ba25e2a32dba4b04"}}]}] BACKPORT--> Co-authored-by: Robert Jaszczurek <[email protected]>
1 parent f8eca55 commit ac95f4a

File tree

4 files changed

+2
-7
lines changed

4 files changed

+2
-7
lines changed

x-pack/platform/plugins/private/translations/translations/fr-FR.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29172,7 +29172,6 @@
2917229172
"xpack.ml.anomalyChartsEmbeddable.setupModal.cancelButtonLabel": "Annuler",
2917329173
"xpack.ml.anomalyChartsEmbeddable.setupModal.title": "Configuration des graphiques Anomaly Explorer",
2917429174
"xpack.ml.anomalyChartsEmbeddable.title": "Graphiques d'anomalies de ML pour {jobIds}",
29175-
"xpack.ml.anomalyDescription.anomalyInLabel": "Anomalie {anomalySeverity} dans {anomalyDetector}",
2917629175
"xpack.ml.anomalyDescription.detectedInLabel": "détecté dans {sourcePartitionFieldName} {sourcePartitionFieldValue}",
2917729176
"xpack.ml.anomalyDescription.foundForLabel": "trouvé pour {anomalyEntityName} {anomalyEntityValue}",
2917829177
"xpack.ml.anomalyDescription.multivariateDescription": "corrélations multi-variable trouvées dans {sourceByFieldName} ; {sourceByFieldValue} est considéré comme anormal en fonction de {sourceCorrelatedByFieldValue}",

x-pack/platform/plugins/private/translations/translations/ja-JP.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29147,7 +29147,6 @@
2914729147
"xpack.ml.anomalyChartsEmbeddable.setupModal.cancelButtonLabel": "キャンセル",
2914829148
"xpack.ml.anomalyChartsEmbeddable.setupModal.title": "異常エクスプローラーグラフ構成",
2914929149
"xpack.ml.anomalyChartsEmbeddable.title": "{jobIds}のML異常グラフ",
29150-
"xpack.ml.anomalyDescription.anomalyInLabel": "{anomalyDetector} の {anomalySeverity} の異常",
2915129150
"xpack.ml.anomalyDescription.detectedInLabel": "{sourcePartitionFieldName} {sourcePartitionFieldValue} で検知",
2915229151
"xpack.ml.anomalyDescription.foundForLabel": "{anomalyEntityName} {anomalyEntityValue} で発見",
2915329152
"xpack.ml.anomalyDescription.multivariateDescription": "{sourceByFieldName} で多変量相関が見つかりました; {sourceByFieldValue} は {sourceCorrelatedByFieldValue} のため異例とみなされます",

x-pack/platform/plugins/private/translations/translations/zh-CN.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29204,7 +29204,6 @@
2920429204
"xpack.ml.anomalyChartsEmbeddable.setupModal.cancelButtonLabel": "取消",
2920529205
"xpack.ml.anomalyChartsEmbeddable.setupModal.title": "异常浏览器图表配置",
2920629206
"xpack.ml.anomalyChartsEmbeddable.title": "{jobIds} 的 ML 异常图表",
29207-
"xpack.ml.anomalyDescription.anomalyInLabel": "{anomalyDetector} 中的 {anomalySeverity} 异常",
2920829207
"xpack.ml.anomalyDescription.detectedInLabel": "在 {sourcePartitionFieldName} {sourcePartitionFieldValue} 检测到",
2920929208
"xpack.ml.anomalyDescription.foundForLabel": "已为 {anomalyEntityName} {anomalyEntityValue} 找到",
2921029209
"xpack.ml.anomalyDescription.multivariateDescription": "{sourceByFieldName} 中找到多变量关联;如果{sourceCorrelatedByFieldValue},{sourceByFieldValue} 将被视为有异常",

x-pack/platform/plugins/shared/ml/common/util/anomaly_description.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
*/
77

88
import { i18n } from '@kbn/i18n';
9-
import { capitalize } from 'lodash';
10-
import { getSeverity, type MlAnomaliesTableRecordExtended } from '@kbn/ml-anomaly-utils';
9+
import { type MlAnomaliesTableRecordExtended } from '@kbn/ml-anomaly-utils';
1110

1211
export function getAnomalyDescription(anomaly: MlAnomaliesTableRecordExtended): {
1312
anomalyDescription: string;
@@ -16,9 +15,8 @@ export function getAnomalyDescription(anomaly: MlAnomaliesTableRecordExtended):
1615
const source = anomaly.source;
1716

1817
let anomalyDescription = i18n.translate('xpack.ml.anomalyDescription.anomalyInLabel', {
19-
defaultMessage: '{anomalySeverity} anomaly in {anomalyDetector}',
18+
defaultMessage: 'Anomaly in {anomalyDetector}',
2019
values: {
21-
anomalySeverity: capitalize(getSeverity(anomaly.severity).label),
2220
anomalyDetector: anomaly.detector,
2321
},
2422
});

0 commit comments

Comments
 (0)