Browse Source

update 简化不必要的配置

dev
lucas 15 hours ago
parent
commit
00584d7076
  1. 1
      configFiles/config_安心云告警双控.yaml
  2. 4
      consumers/consumerAxySkAlarm.go

1
configFiles/config_安心云告警双控.yaml

@ -16,7 +16,6 @@ ioConfig:
groupId: axy_sk_alarm_inout groupId: axy_sk_alarm_inout
alarmTopic: anxinyun_alarm #推送告警的主题 alarmTopic: anxinyun_alarm #推送告警的主题
topics: topics:
- no
monitor: monitor:
cron: 24 * * * * cron: 24 * * * *

4
consumers/consumerAxySkAlarm.go

@ -71,11 +71,7 @@ func (the *consumerAxySkAlarm) inputInitial() error {
GroupId: the.Info.IoConfig.Out.Kafka.GroupId, GroupId: the.Info.IoConfig.Out.Kafka.GroupId,
} }
the.OutKafka.Initial() the.OutKafka.Initial()
for _, inTopic := range the.Info.IoConfig.Out.Kafka.Topics {
the.OutKafka.Subscribe(inTopic, the.onData)
}
the.OutKafka.Worker()
return nil return nil
} }
func (the *consumerAxySkAlarm) outputInitial() error { func (the *consumerAxySkAlarm) outputInitial() error {

Loading…
Cancel
Save