|
|
@ -132,7 +132,7 @@ func (the *consumerAXYES2GDJKJC) getStructIds() []int64 { |
|
|
|
func (the *consumerAXYES2GDJKJC) getEs1HourAggData() { |
|
|
|
start, end := utils.GetTimeRangeByHour(-1) |
|
|
|
log.Printf("查询数据时间范围 %s - %s", start, end) |
|
|
|
hourFactorIds := []int{15, 18, 20} |
|
|
|
hourFactorIds := []int{63} //[]int{11, 15, 18, 20} //应变11 桥墩倾斜15 裂缝监测18 桥面振动28 支护结构变形63
|
|
|
|
structIds := the.getStructIds() |
|
|
|
for _, structId := range structIds { |
|
|
|
for _, factorId := range hourFactorIds { |
|
|
@ -140,6 +140,12 @@ func (the *consumerAXYES2GDJKJC) getEs1HourAggData() { |
|
|
|
auth := map[string]string{"Authorization": "Bear 85a441d4-022b-4613-abba-aaa8e2693bf7"} |
|
|
|
esAggResultStr := the.InHttp.HttpGetWithHeader(esQuery, auth) |
|
|
|
|
|
|
|
lenRes := len(esAggResultStr) |
|
|
|
if lenRes < 250 { |
|
|
|
log.Printf("[s=%d,f=%d],es agg 返回无数据", structId, factorId) |
|
|
|
continue |
|
|
|
} |
|
|
|
|
|
|
|
adaptor := the.getAdaptor() |
|
|
|
adaptor.PointInfo = the.ConfigInfo.PointInfo |
|
|
|
adaptor.StructInfo = the.ConfigInfo.StructInfo |
|
|
|