60 lines
1.2 KiB
Java
60 lines
1.2 KiB
Java
|
|
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
|
|||
|
|
*/
|
|||
|
|
@Data
|
|||
|
|
@Measurement(name = "data_flicker")
|
|||
|
|
public class DataFlicker {
|
|||
|
|
|
|||
|
|
@TimeColumn
|
|||
|
|
@Column(name = "time", tag = true)
|
|||
|
|
@JsonSerialize(using = InstantDateSerializer.class)
|
|||
|
|
private Instant time;
|
|||
|
|
|
|||
|
|
@Column(name = "fluc")
|
|||
|
|
private Double fluc;
|
|||
|
|
|
|||
|
|
@Column(name = "line_id", tag = true)
|
|||
|
|
private String lineId;
|
|||
|
|
|
|||
|
|
@Column(name = "phasic_type", tag = true)
|
|||
|
|
private String phaseType;
|
|||
|
|
|
|||
|
|
@Column(name = "plt")
|
|||
|
|
private Double plt;
|
|||
|
|
|
|||
|
|
@Column(name = "pst")
|
|||
|
|
private Double pst;
|
|||
|
|
|
|||
|
|
@Column(name = "quality_flag", tag = true)
|
|||
|
|
private String qualityFlag;
|
|||
|
|
|
|||
|
|
|
|||
|
|
//自定义字段
|
|||
|
|
@Column(name = "value_type")
|
|||
|
|
private String valueType;
|
|||
|
|
|
|||
|
|
@Column(name = "count")
|
|||
|
|
private Integer count;
|
|||
|
|
|
|||
|
|
@Column(name = "pst_count")
|
|||
|
|
private Integer pstCount;
|
|||
|
|
|
|||
|
|
@Column(name = "plt_count")
|
|||
|
|
private Integer pltCount;
|
|||
|
|
|
|||
|
|
}
|