Authored by zhengyouwei

移除Aws库

@@ -68,7 +68,7 @@ public class JavaApiStaticsMapper implements IJavaApiStaticsMapper { @@ -68,7 +68,7 @@ public class JavaApiStaticsMapper implements IJavaApiStaticsMapper {
68 Point point = pointBuilder.build(); 68 Point point = pointBuilder.build();
69 batchPoints.point(point); 69 batchPoints.point(point);
70 70
71 - inluxDBSingle.getInfluxDBByName(InfluxDBContants.AWS).getInfluxDB() 71 + inluxDBSingle.getInfluxDBByName(InfluxDBContants.ALARM).getInfluxDB()
72 .write(batchPoints); 72 .write(batchPoints);
73 73
74 74
@@ -84,7 +84,7 @@ public class JavaApiStaticsMapper implements IJavaApiStaticsMapper { @@ -84,7 +84,7 @@ public class JavaApiStaticsMapper implements IJavaApiStaticsMapper {
84 sql += " order by time desc limit 1"; 84 sql += " order by time desc limit 1";
85 Query query = new Query(sql, InfluxDBContants.APP_ALARM); 85 Query query = new Query(sql, InfluxDBContants.APP_ALARM);
86 86
87 - QueryResult result = inluxDBSingle.getInfluxDBByName(InfluxDBContants.AWS).getInfluxDB().query(query); 87 + QueryResult result = inluxDBSingle.getInfluxDBByName(InfluxDBContants.ALARM).getInfluxDB().query(query);
88 88
89 JavaApiStaticsModel javaApiStaticsModel = new JavaApiStaticsModel(); 89 JavaApiStaticsModel javaApiStaticsModel = new JavaApiStaticsModel();
90 javaApiStaticsModel.setServiceId(api_id); 90 javaApiStaticsModel.setServiceId(api_id);
@@ -170,7 +170,7 @@ public class JavaApiStaticsMapper implements IJavaApiStaticsMapper { @@ -170,7 +170,7 @@ public class JavaApiStaticsMapper implements IJavaApiStaticsMapper {
170 log.info("sql:{}", sql); 170 log.info("sql:{}", sql);
171 Query query = new Query(sql, InfluxDBContants.APP_ALARM); 171 Query query = new Query(sql, InfluxDBContants.APP_ALARM);
172 172
173 - QueryResult result = inluxDBSingle.getInfluxDBByName(InfluxDBContants.AWS).getInfluxDB().query(query); 173 + QueryResult result = inluxDBSingle.getInfluxDBByName(InfluxDBContants.ALARM).getInfluxDB().query(query);
174 174
175 List<JavaApiStaticsModel> list = new ArrayList<JavaApiStaticsModel>(); 175 List<JavaApiStaticsModel> list = new ArrayList<JavaApiStaticsModel>();
176 176
@@ -260,7 +260,7 @@ public class JavaApiStaticsMapper implements IJavaApiStaticsMapper { @@ -260,7 +260,7 @@ public class JavaApiStaticsMapper implements IJavaApiStaticsMapper {
260 260
261 Query query = new Query(sql, InfluxDBContants.APP_ALARM); 261 Query query = new Query(sql, InfluxDBContants.APP_ALARM);
262 262
263 - QueryResult result = inluxDBSingle.getInfluxDBByName(InfluxDBContants.AWS).getInfluxDB().query(query); 263 + QueryResult result = inluxDBSingle.getInfluxDBByName(InfluxDBContants.ALARM).getInfluxDB().query(query);
264 264
265 return QueryResultUtil.getCount(result); 265 return QueryResultUtil.getCount(result);
266 } 266 }