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