mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
This commit is contained in:
parent
51bab14d9a
commit
cf28bfb379
1 changed files with 3 additions and 1 deletions
|
@ -258,7 +258,9 @@ export function alertingServiceProvider(mlClient: MlClient, esClient: Elasticsea
|
|||
} else if (source.result_type === ANOMALY_RESULT_TYPE.RECORD) {
|
||||
const fieldName = getEntityFieldName(source);
|
||||
const fieldValue = getEntityFieldValue(source);
|
||||
alertInstanceKey += `_${source.detector_index}_${source.function}_${fieldName}_${fieldValue}`;
|
||||
const entity =
|
||||
fieldName !== undefined && fieldValue !== undefined ? `_${fieldName}_${fieldValue}` : '';
|
||||
alertInstanceKey += `_${source.detector_index}_${source.function}${entity}`;
|
||||
}
|
||||
return alertInstanceKey;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue