package com.njcn.event.pojo.vo;

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

import java.time.LocalDateTime;

/**
 * pqs-event
 *
 * @author cdf
 * @date 2022/6/23
 */
@Data
@ApiModel
@Measurement(name = "pqs_eventdetail")
public class EventAnalyseVO {

    @ApiModelProperty(name = "time",value = "暂降发生时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;

    @ApiModelProperty(name = "eventValue",value = "特征幅值")
    @Column(name = "event_value")
    private Float eventValue;

    @ApiModelProperty(name = "persistTime",value = "持续时间（ms）")
    @Column(name = "persist_time")
    private Integer persistTime;

    @ApiModelProperty(name = "eventType",value = "暂降类型")
    @Column(name = "event_type")
    private Integer eventType;

    @ApiModelProperty(name = "eventReason",value = "暂降原因")
    @Column(name = "event_reason")
    private Integer eventReason;

    @ApiModelProperty(name = "waveType",value = "触发类型")
    @Column(name = "wave_type")
    private Integer waveType;
}
