develop
yuemian 2024-10-14 17:38:40 +08:00
parent 368d5b337d
commit 57a678272e
1 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,10 @@ public class ApiController {
@RequestParam(value = "limit", required = false, defaultValue = "5") Integer limit, @RequestParam(value = "limit", required = false, defaultValue = "5") Integer limit,
@Value(Common.REQ_CONTEXT) RequestContext context, @Value(Common.REQ_CONTEXT) RequestContext context,
HttpServletRequest request) { HttpServletRequest request) {
log.info("type:" + type);
log.info("vendorId:" + vendorId);
log.info("vendorType:" + vendorType);
log.info("limit:" + limit);
LineChartResult chart = switch (type) { LineChartResult chart = switch (type) {
case "hostCpu" -> this.topService.topOfHostCpu(vendorId, limit); case "hostCpu" -> this.topService.topOfHostCpu(vendorId, limit);
case "hostMem" -> this.topService.topOfHostMem(vendorId, limit); case "hostMem" -> this.topService.topOfHostMem(vendorId, limit);