package com.njcn.csharmonic.pojo.dto.eventReport;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.influxdb.annotation.Column;
import org.influxdb.annotation.Measurement;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author denghuajun
 * @version 1.0.0
 * @date 2022年04月07日 08:59
 */

@Data
@Measurement(name = "pqs_eventdetail")
//@TableName("r_mp_event_detail")
public class EventDetail {

    @ApiModelProperty(name = "eventId",value ="暂态事件id")
    private String eventId;

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

    @Column(name = "time")
    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS",timezone = "GMT+8")
    private LocalDateTime startTime;

    @Column(name = "event_describe")
    @ApiModelProperty(value = "事件描述")
    private String eventDescribe;

    @Column(name = "wave_type")
    @ApiModelProperty(value = "统计类型")
    private String eventType;

    @Column(name = "persist_time")
    @ApiModelProperty(value = "持续时间，单位秒")
    private Double duration;

    @Column(name = "event_value")
    @ApiModelProperty(value = "特征幅值")
    private Double featureAmplitude;

    @Column(name = "event_reason")
    @ApiModelProperty(value = "暂降原因（Event_Reason）")
    private String advanceReason;

    @Column(name = "event_type")
    @ApiModelProperty(value = "暂降类型（Event_Type）")
    private String advanceType;

    @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")
    @ApiModelProperty(value = "波形路径")
    private String wavePath;

    @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;

    private String lineName;

    private BigDecimal lat;

    private BigDecimal lng;

    private String gdName;

    private String subName;


}
