Commit 04bffc10 authored by zengtianlai3's avatar zengtianlai3

test commit

parent e09f3d5b
package iot.sixiang.license.controller; package iot.sixiang.license.controller;
import com.alibaba.fastjson.JSONObject;
import iot.sixiang.license.model.ResResult; import iot.sixiang.license.model.ResResult;
import iot.sixiang.license.model.SamMonitor; import iot.sixiang.license.model.SamMonitor;
import iot.sixiang.license.operate.OperateManager; import iot.sixiang.license.operate.OperateManager;
...@@ -8,8 +9,10 @@ import lombok.extern.slf4j.Slf4j; ...@@ -8,8 +9,10 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List; import java.util.List;
@Slf4j @Slf4j
...@@ -42,4 +45,26 @@ public class OperateController { ...@@ -42,4 +45,26 @@ public class OperateController {
return ResResult.success().record(records); return ResResult.success().record(records);
} }
@GetMapping("monitor/qps")
public ResResult getQps(@RequestParam("type") int type) {
List<JSONObject> list = new ArrayList<>();
JSONObject obj = new JSONObject();
obj.put("x", 1);
obj.put("y", 2);
list.add(obj);
JSONObject obj2 = new JSONObject();
obj2.put("x", 2);
obj2.put("y", 2);
list.add(obj2);
JSONObject obj3 = new JSONObject();
obj2.put("x", 3);
obj2.put("y", 3);
list.add(obj3);
return ResResult.success().record(list);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment