|
@@ -24,7 +24,7 @@ public interface Adapter {
|
|
@RequestParam(value = "ts", required = false) Long ts
|
|
@RequestParam(value = "ts", required = false) Long ts
|
|
);
|
|
);
|
|
|
|
|
|
- //获取一个或多个测点,指定时间的数据(没有则返回前一个时间点的数据)
|
|
|
|
|
|
+ //获取一个测点指定时间段内的数据(可以设置间隔时间单位S)
|
|
@GetMapping("/history/snap")
|
|
@GetMapping("/history/snap")
|
|
List<PointData> getHistorySnap(
|
|
List<PointData> getHistorySnap(
|
|
@RequestParam(value = "tagName", required = false) String tagName,
|
|
@RequestParam(value = "tagName", required = false) String tagName,
|
|
@@ -33,6 +33,8 @@ public interface Adapter {
|
|
@RequestParam(value = "interval", required = false) Integer interval
|
|
@RequestParam(value = "interval", required = false) Integer interval
|
|
);
|
|
);
|
|
|
|
|
|
|
|
+
|
|
|
|
+ //获取一个测点指定时间段内的数据
|
|
@GetMapping("/history/raw")
|
|
@GetMapping("/history/raw")
|
|
List<PointData> getHistoryRaw(
|
|
List<PointData> getHistoryRaw(
|
|
@RequestParam(value = "tagName", required = false) String tagName,
|
|
@RequestParam(value = "tagName", required = false) String tagName,
|