add api for get limitfields
This commit is contained in:
parent
25e553a178
commit
7884246521
|
@ -1,6 +1,7 @@
|
|||
package org.bench4q.monitor.api;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
|
||||
|
@ -30,8 +31,8 @@ public class MainController {
|
|||
|
||||
@RequestMapping(value = "/limitableFields")
|
||||
@ResponseBody
|
||||
public LimitableFieldsModel limitableFields() throws SigarException {
|
||||
return new LimitableFieldsModel();
|
||||
public List<String> limitableFields() throws SigarException {
|
||||
return new LimitableFieldsModel().getFields();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/submitLimit/{testPlanId}", method = RequestMethod.PUT)
|
||||
|
|
|
@ -55,5 +55,8 @@ public class LimitableFieldsModel {
|
|||
this.fieldsParent = fieldsParent;
|
||||
}
|
||||
|
||||
|
||||
public static void main(String args[]) throws SigarException{
|
||||
LimitableFieldsModel limitableFieldsModel = new LimitableFieldsModel();
|
||||
System.out.println(limitableFieldsModel.getFields());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue