mirror of
https://github.com/dataease/dataease.git
synced 2026-06-16 11:21:44 +08:00
perf(X-Pack): 阈值告警-告警内容包含多个指标值的消息模版 #16480
This commit is contained in:
committed by
fit2cloud-chenyw
parent
e23a8f492a
commit
3eea73f392
@@ -283,7 +283,7 @@ public class ChartViewThresholdManage {
|
||||
DatasetTableFieldDTO fieldDTO = fieldMap.get(id);
|
||||
if (ObjectUtils.isEmpty(fieldDTO)) continue;
|
||||
String fieldDTOName = fieldDTO.getName();
|
||||
String dataeaseName = fieldDTO.getDataeaseName();
|
||||
/*String dataeaseName = fieldDTO.getDataeaseName();
|
||||
String replacement = null;
|
||||
if (fieldDTO.getDeType().equals(DeTypeConstants.DE_FLOAT) || fieldDTO.getDeType().equals(DeTypeConstants.DE_INT)) {
|
||||
List<String> valueList = rows.stream().map(row -> ObjectUtils.isEmpty(row.get(dataeaseName)) ? null : stripTrailingZeros2String(row.get(dataeaseName))).collect(Collectors.toList());
|
||||
@@ -294,7 +294,8 @@ public class ChartViewThresholdManage {
|
||||
}
|
||||
|
||||
// 替换文本
|
||||
matcher.appendReplacement(sb, replacement);
|
||||
matcher.appendReplacement(sb, replacement);*/
|
||||
matcher.appendReplacement(sb, fieldDTOName);
|
||||
}
|
||||
matcher.appendTail(sb);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user