parent
bc05582caf
commit
77a48167b5
@ -0,0 +1,30 @@
|
|||||||
|
package org.dromara.tsdb.component;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public interface InfluxDbClient {
|
||||||
|
/**
|
||||||
|
* 插入数据
|
||||||
|
* @param measurement
|
||||||
|
* @param tags
|
||||||
|
* @param fields
|
||||||
|
*/
|
||||||
|
void writeData(String measurement, Map<String, String> tags, Map<String, Object> fields);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 插入数据
|
||||||
|
* @param measurement
|
||||||
|
* @param tags
|
||||||
|
* @param fields
|
||||||
|
* @param timestamp
|
||||||
|
*/
|
||||||
|
void writeData(String measurement, Map<String, String> tags, Map<String, Object> fields, long timestamp);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取数据
|
||||||
|
* @param query
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<Map<String, Object>> queryData(String query);
|
||||||
|
}
|
Loading…
Reference in New Issue