@Controller @RequestMapping(value="/v1/cs/capacity") public class CapacityController extends Object
| Constructor and Description |
|---|
CapacityController(CapacityService capacityService) |
| Modifier and Type | Method and Description |
|---|---|
RestResult<Capacity> |
getCapacity(javax.servlet.http.HttpServletResponse response,
String group,
String tenant) |
RestResult<Boolean> |
updateCapacity(javax.servlet.http.HttpServletResponse response,
String group,
String tenant,
Integer quota,
Integer maxSize,
Integer maxAggrCount,
Integer maxAggrSize)
修改Group或租户的容量,容量信息还没有初始化的则初始化记录
|
@Autowired public CapacityController(CapacityService capacityService)
@ResponseBody @RequestMapping(method=GET) public RestResult<Capacity> getCapacity(javax.servlet.http.HttpServletResponse response, @RequestParam(required=false) String group, @RequestParam(required=false) String tenant)
@ResponseBody @RequestMapping(method=POST) public RestResult<Boolean> updateCapacity(javax.servlet.http.HttpServletResponse response, @RequestParam(required=false) String group, @RequestParam(required=false) String tenant, @RequestParam(required=false) Integer quota, @RequestParam(required=false) Integer maxSize, @RequestParam(required=false) Integer maxAggrCount, @RequestParam(required=false) Integer maxAggrSize)
Copyright © 2018–2019 Alibaba Group. All rights reserved.