update
This commit is contained in:
@@ -256,6 +256,34 @@ public class TrafficStatisticsInfoController extends BaseController {
|
|||||||
}
|
}
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 间隔5分钟数据
|
||||||
|
*/
|
||||||
|
@RequestMapping(value="bandwidthTransThree")
|
||||||
|
@ResponseBody
|
||||||
|
public Map bandwidthTransThree(String beginDate,String endDate){
|
||||||
|
Map<String, Object> fromJsonList = new HashMap<String, Object>();
|
||||||
|
Map map = new HashMap();
|
||||||
|
//String url = Constants.DASHBOARD_URL+Constants.TRAFFIC_BANDWIDTH_TRANS_TWO;
|
||||||
|
//String url="http://192.168.11.78:8080/galaxy/service/log/v1/"+Constants.TRAFFIC_BANDWIDTH_TRANS_THREE;
|
||||||
|
//String url="http://192.168.11.78:8080/galaxy/service/log/v1/"+Constants.TRAFFIC_BANDWIDTH_TRANS_FOUR;
|
||||||
|
String url=Constants.DASHBOARD_URL+Constants.TRAFFIC_BANDWIDTH_TRANS_THREE;
|
||||||
|
//String url=Constants.DASHBOARD_URL+Constants.TRAFFIC_BANDWIDTH_TRANS_FOUR;
|
||||||
|
try {
|
||||||
|
url=urlAddDate(url,beginDate,endDate);
|
||||||
|
|
||||||
|
String string = HttpClientUtil.get(url);
|
||||||
|
Gson gson = new GsonBuilder().create();
|
||||||
|
fromJsonList = gson.fromJson(string, new TypeToken<Map>(){}.getType());
|
||||||
|
logger.debug("bandwidthTransThree服务查询数据成功");
|
||||||
|
Map result = (Map)fromJsonList.get("data");
|
||||||
|
return result;
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
logger.error("带宽详情数据获取错误"+e);
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 协议类型详细列表
|
* 协议类型详细列表
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user