|
|
@ -58,7 +58,7 @@ func (the *consumerAXYES2GDJKJC) InputInitial() error { |
|
|
|
for taskName, cron := range the.Info.Monitor { |
|
|
|
switch taskName { |
|
|
|
case "cron10min": |
|
|
|
the.monitor.RegisterTask(cron, the.getEs10minAggData) |
|
|
|
the.monitor.RegisterTask(cron, the.GetEs10minAggData) |
|
|
|
case "cron1hour": |
|
|
|
the.monitor.RegisterTask(cron, the.getEs1HourAggData) |
|
|
|
default: |
|
|
@ -142,11 +142,11 @@ func (the *consumerAXYES2GDJKJC) getEs1HourAggData() { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
func (the *consumerAXYES2GDJKJC) getEs10minAggData() { |
|
|
|
func (the *consumerAXYES2GDJKJC) GetEs10minAggData() { |
|
|
|
//utils.GetTimeRangeBy10min() 由于振动数据实时性问题 改用一小时统一上报
|
|
|
|
start, end := utils.GetTimeRangeByHour(-1) |
|
|
|
log.Printf("查询10min数据时间范围 %s - %s", start, end) |
|
|
|
factorIds := []int{28, 592} //监测因素 592 -> 结构物[5222]隧道河北承德广仁岭隧道(上行) 的加速度三项监测
|
|
|
|
factorIds := []int{28} //桥面振动 28
|
|
|
|
structIds := the.getStructIds() |
|
|
|
for _, structId := range structIds { |
|
|
|
for _, factorId := range factorIds { |
|
|
|