From 40ab4bb2e8f4f2ca7a564f2031e9f0f2352213d8 Mon Sep 17 00:00:00 2001 From: lucas Date: Tue, 8 Jul 2025 16:57:11 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=9B=B4=E6=96=B0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=A4=84=E7=90=86=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adaptors/知物云es告警组合聚集to触发爆闪.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adaptors/知物云es告警组合聚集to触发爆闪.go b/adaptors/知物云es告警组合聚集to触发爆闪.go index ce86d3a..6780d35 100644 --- a/adaptors/知物云es告警组合聚集to触发爆闪.go +++ b/adaptors/知物云es告警组合聚集to触发爆闪.go @@ -25,7 +25,7 @@ type Adaptor_ZWY_AlarmCombin struct { func (the Adaptor_ZWY_AlarmCombin) Transform(config AlarmCombination.CombinationInfo, rawMsg string) []NeedPush { //20250704苏玮确认 小条件有一个告警就算有效,至少2个小条件告警, 触发大告警 - log.Printf("解析数据") + log.Printf("对比组合配置%s,解析数据", config.Name) esAggData := AlarmCombination.EsAggAlarm{} esAggData.Aggregations.GroupBySensor.Buckets = []AlarmCombination.BucketsSensorDataCount{} var needPush []NeedPush @@ -52,6 +52,7 @@ func (the Adaptor_ZWY_AlarmCombin) Transform(config AlarmCombination.Combination detailMsg += stationName } factorItemAlarmCounts += 1 + log.Printf("[f=%d]测点%s,存在有效告警", item.FactorId, stationName) break //一种类型有一个点就跳出 } else { log.Printf("测点[%d]无匹配的名称", stationId)