|
|
@ -75,6 +75,7 @@ func (the *consumerZWYHBJCAS) InputInitial() error { |
|
|
the.ch = make(chan []adaptors.NeedPush, 200) |
|
|
the.ch = make(chan []adaptors.NeedPush, 200) |
|
|
//数据入口
|
|
|
//数据入口
|
|
|
the.InHttp = &dbOperate.HttpHelper{Url: the.Info.IoConfig.In.Http.Url, Token: ""} |
|
|
the.InHttp = &dbOperate.HttpHelper{Url: the.Info.IoConfig.In.Http.Url, Token: ""} |
|
|
|
|
|
the.InHttp.InitialWithTls() |
|
|
the.InKafka = _kafka.KafkaHelper{ |
|
|
the.InKafka = _kafka.KafkaHelper{ |
|
|
Brokers: the.Info.IoConfig.In.Kafka.Brokers, |
|
|
Brokers: the.Info.IoConfig.In.Kafka.Brokers, |
|
|
GroupId: the.Info.IoConfig.In.Kafka.GroupId, |
|
|
GroupId: the.Info.IoConfig.In.Kafka.GroupId, |
|
|
@ -184,7 +185,7 @@ func (the *consumerZWYHBJCAS) getEs1HourAggData() { |
|
|
for _, factorId := range hourFactorIds { |
|
|
for _, factorId := range hourFactorIds { |
|
|
esQuery := the.getESQueryStrByHour(structId, factorId, start, end) |
|
|
esQuery := the.getESQueryStrByHour(structId, factorId, start, end) |
|
|
auth := map[string]string{"Authorization": "Bear 85a441d4-022b-4613-abba-aaa8e2693bf7"} |
|
|
auth := map[string]string{"Authorization": "Bear 85a441d4-022b-4613-abba-aaa8e2693bf7"} |
|
|
esAggResultStr := the.InHttp.HttpGetWithHeader(esQuery, auth) |
|
|
esAggResultStr := the.InHttp.HttpGetWithHeaderWithTLS(esQuery, auth) |
|
|
|
|
|
|
|
|
adaptor := the.getAdaptor() |
|
|
adaptor := the.getAdaptor() |
|
|
adaptor.PointInfo = the.Info.PointInfo |
|
|
adaptor.PointInfo = the.Info.PointInfo |
|
|
@ -212,7 +213,7 @@ func (the *consumerZWYHBJCAS) getEs10minAggData() { |
|
|
for _, factorId := range factorIds { |
|
|
for _, factorId := range factorIds { |
|
|
esQuery := the.getESQueryStrBy10min(structId, factorId, start, end) |
|
|
esQuery := the.getESQueryStrBy10min(structId, factorId, start, end) |
|
|
auth := map[string]string{"Authorization": "Bear 85a441d4-022b-4613-abba-aaa8e2693bf7"} |
|
|
auth := map[string]string{"Authorization": "Bear 85a441d4-022b-4613-abba-aaa8e2693bf7"} |
|
|
esAggResultStr := the.InHttp.HttpGetWithHeader(esQuery, auth) |
|
|
esAggResultStr := the.InHttp.HttpGetWithHeaderWithTLS(esQuery, auth) |
|
|
|
|
|
|
|
|
adaptor := the.getAdaptor() |
|
|
adaptor := the.getAdaptor() |
|
|
adaptor.PointInfo = the.Info.PointInfo |
|
|
adaptor.PointInfo = the.Info.PointInfo |
|
|
|