| | |
| | | try { |
| | | this.getByHtp(result, params, collectTime); |
| | | } catch (Exception ex) { |
| | | log.info("getCurrentValue异常"); |
| | | log.info("getTagValues异常"); |
| | | ex.printStackTrace(); |
| | | throw ex; |
| | | } |
| | |
| | | Map<String, String> queryMap = new HashMap<>(); |
| | | String point = item[1].toString(); |
| | | queryMap.put("point", point); |
| | | queryMap.put("startTime", DateUtils.format(startTime, "yyyy-MM-dd HH:mm:ss")); |
| | | queryMap.put("endTime", DateUtils.format(endTime, "yyyy-MM-dd HH:mm:ss")); |
| | | queryMap.put("startTime", DateUtils.format(startTime, "yyyy-MM-dd%20HH:mm:ss")); |
| | | queryMap.put("endTime", DateUtils.format(endTime, "yyyy-MM-dd%20HH:mm:ss")); |
| | | log.info("HttpCollectorForAsag:queryMap={}", JSON.toJSONString(queryMap)); |
| | | String responseStr = HttpUtils.sendGet(api_url, queryMap, ""); |
| | | log.info("HttpCollectorForAsag:responseStr={}", responseStr); |
| | | JSONObject obj = JSON.parseObject(responseStr); |
| | | if (obj.containsKey(point)) { |
| | | Double value = obj.getDouble(point); |