package com.njcn.event.pojo;

import com.njcn.influx.deprecated.InfluxDBPublicParam;
import lombok.Data;
import org.influxdb.annotation.Column;
import org.influxdb.annotation.Measurement;

import java.time.Instant;


@Data
@Measurement(name = InfluxDBPublicParam.PQS_EVENT_DETAIL)
public class PqsEventDetail {

    @Column(name = "line_id")
    private String lineId;

    @Column(name = "time")
    private Instant time;

    @Column(name = "event_describe")
    private String eventDescribe;

    @Column(name = "wave_type")
    private Integer waveType;

    @Column(name = "persist_time")
    private Double persistTime;

    @Column(name = "event_value")
    private Double eventValue;

    @Column(name = "event_reason")
    private String eventReason;

    @Column(name = "event_type")
    private String eventType;

    @Column(name = "eventass_index")
    private String eventassIndex;

    @Column(name = "dq_time")
    private Integer dqTime;

    @Column(name = "deal_time")
    private String dealTime;

    @Column(name = "deal_flag")
    private Integer dealFlag;

    @Column(name = "num")
    private Integer num;

    @Column(name = "file_flag")
    private Integer fileFlag;

    @Column(name = "first_time")
    private String firstTime;

    @Column(name = "first_type")
    private String firstType;

    @Column(name = "first_ms")
    private Integer firstMs;

    @Column(name = "wave_name")
    private String waveName;

    @Column(name = "energy")
    private Double energy;

    @Column(name = "severity")
    private Double severity;

    @Column(name = "sagsource")
    private String sagSource;

    @Column(name = "create_time")
    private String createTime;

}
