初始化influx公共模块项目
This commit is contained in:
51
src/main/java/com/njcn/influx/pojo/po/DataPlt.java
Normal file
51
src/main/java/com/njcn/influx/pojo/po/DataPlt.java
Normal file
@@ -0,0 +1,51 @@
|
||||
package com.njcn.influx.pojo.po;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.njcn.influx.utils.InstantDateSerializer;
|
||||
import lombok.Data;
|
||||
import org.influxdb.annotation.Column;
|
||||
import org.influxdb.annotation.Measurement;
|
||||
import org.influxdb.annotation.TimeColumn;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/4/12 16:01
|
||||
*/
|
||||
@Data
|
||||
@Measurement(name = "data_plt")
|
||||
public class DataPlt {
|
||||
|
||||
@TimeColumn
|
||||
@Column(name = "time", tag = true)
|
||||
@JsonSerialize(using = InstantDateSerializer.class)
|
||||
private Instant time;
|
||||
|
||||
@Column(name = "line_id", tag = true)
|
||||
private String lineId;
|
||||
|
||||
@Column(name = "phasic_type", tag = true)
|
||||
private String phaseType;
|
||||
|
||||
@Column(name = "value_type", tag = true)
|
||||
private String valueType;
|
||||
|
||||
@Column(name = "quality_flag", tag = true)
|
||||
private String qualityFlag;
|
||||
|
||||
@Column(name = "plt")
|
||||
private Double plt;
|
||||
|
||||
//自定义字段-闪变总计算次数
|
||||
@Column(name = "flicker_all_time")
|
||||
private Integer flickerAllTime;
|
||||
|
||||
//自定义字段
|
||||
@Column(name = "mean")
|
||||
private Double mean;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user