package com.njcn.supervision.pojo.vo.device;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 类的介绍：
 *
 * @author xuyang
 * @version 1.0.0
 * @createTime 2024/6/18 16:44
 */
@Data
public class OnlineVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("责任单位")
    private String dept;

    @ApiModelProperty("变电站")
    private String substation;

    @ApiModelProperty("装置名称")
    private String deviceName;

    @ApiModelProperty("监测点id")
    private String lineId;

    @ApiModelProperty("监测点名称")
    private String lineName;

    @ApiModelProperty("监测对象类型")
    private String businessType;

    @ApiModelProperty("监测对象名称")
    private String objectName;

    @ApiModelProperty("指标id")
    private String targetType;

    @ApiModelProperty("超标天数")
    private Integer overLimitDay;

    @ApiModelProperty("频率偏差")
    private Integer freq;

    @ApiModelProperty("电压偏差")
    private Integer voltage;

    @ApiModelProperty("闪变")
    private Integer flicker;

    @ApiModelProperty("三相电压不平衡度")
    private Integer ubalance;

    @ApiModelProperty("负序电流")
    private Integer iNeg;

    @ApiModelProperty("谐波电压")
    private Integer harmonicV;

    @ApiModelProperty("谐波电流")
    private Integer harmonicI;

    @ApiModelProperty("间谐波电压")
    private Integer inuharmV;

    @ApiModelProperty("数据来源 0:系统默认 1:自定义")
    private Integer dataResource;

    @ApiModelProperty("当前流程(null:无流程 1:预警 2:告警)")
    private Integer step;

    @ApiModelProperty("最新数据时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty("数据类型 0:无数据 1:超标告警 2:异常数据")
    private Integer dataType;
}
