提交 | 用户 | 时间
|
a6de49
|
1 |
package com.iailab.module.data.influxdb.service; |
H |
2 |
|
139c6a
|
3 |
import com.iailab.module.data.api.dto.ApiPointValueQueryDTO; |
a6de49
|
4 |
import com.iailab.module.data.influxdb.pojo.InfluxPointValuePOJO; |
H |
5 |
import com.iailab.module.data.api.dto.ApiTagValueQueryDTO; |
|
6 |
import com.iailab.module.data.influxdb.pojo.InfluxTagValuePOJO; |
139c6a
|
7 |
import com.iailab.module.data.point.vo.PointValueExportVO; |
a6de49
|
8 |
|
H |
9 |
import javax.servlet.http.HttpServletRequest; |
|
10 |
import javax.servlet.http.HttpServletResponse; |
|
11 |
import java.util.Date; |
|
12 |
import java.util.List; |
|
13 |
import java.util.Map; |
|
14 |
|
|
15 |
/** |
|
16 |
* InfluxDB操作类 |
|
17 |
*/ |
|
18 |
public interface InfluxDBService { |
|
19 |
|
|
20 |
void syncWriteFloatValue(String pointNo, String dataValue, long time); |
|
21 |
|
|
22 |
void syncWriteIntValue(String pointNo, String dataValue, long time); |
|
23 |
|
|
24 |
void syncWriteBooleanValue(String pointNo, String dataValue, long time); |
|
25 |
|
|
26 |
void asyncWritePointValues(List<InfluxPointValuePOJO> pointValues); |
|
27 |
|
|
28 |
void asyncWriteTagValues(List<InfluxTagValuePOJO> tagValues); |
|
29 |
|
|
30 |
Map<String, Object> queryPointsLastValue(List<InfluxPointValuePOJO> influxParams); |
|
31 |
|
|
32 |
Map<String, List<Object>> queryTagsValues(List<InfluxTagValuePOJO> influxParams, Date startTime, Date endTime); |
|
33 |
|
|
34 |
List<Map<String, Object>> queryPointValues(InfluxPointValuePOJO pojo, Date startTime, Date endTime); |
|
35 |
|
|
36 |
Map<String, List<Map<String, Object>>> queryPointsValues(List<InfluxPointValuePOJO> influxParams, Date startTime, Date endTime); |
|
37 |
|
|
38 |
Map<String, Object> queryPointsSpread(List<InfluxPointValuePOJO> influxParams, Date startTime, Date endTime); |
|
39 |
|
|
40 |
boolean exportTagValue(HttpServletResponse response, HttpServletRequest request, ApiTagValueQueryDTO params); |
|
41 |
|
|
42 |
Object queryPointMaxValue(InfluxPointValuePOJO point, Date startTime); |
139c6a
|
43 |
|
D |
44 |
List<PointValueExportVO> exportPointValue(ApiPointValueQueryDTO queryDto); |
a6de49
|
45 |
} |