...
|
...
|
@@ -88,10 +88,15 @@ public class BaseLogJob implements Callable { |
|
|
|
|
|
DEBUG.debug("Start to execute query command : {}", sql);
|
|
|
|
|
|
QueryResult result = influxComp.doQuery(sql, InterVar.DBNAME);
|
|
|
try {
|
|
|
QueryResult result = influxComp.doQuery(sql, InterVar.DBNAME);
|
|
|
|
|
|
//parse result to api series model
|
|
|
buildApiModel(apiSeriesModelList, result.getResults().get(0).getSeries());
|
|
|
} catch (Exception e) {
|
|
|
DEBUG.error("Failed to execute query commnad: {} , error: {}", sql, e);
|
|
|
}
|
|
|
|
|
|
//parse result to api series model
|
|
|
buildApiModel(apiSeriesModelList, result.getResults().get(0).getSeries());
|
|
|
|
|
|
DEBUG.info("Success to query {} items from {}", apiSeriesModelList.size(), measureName);
|
|
|
}
|
...
|
...
|
|