package com.zksy.WaterSupply.MonitorAlarm.dto.out;

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

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

/**
 * 监测报警一张图-点位出参
 */
@Data
@ApiModel(value = "监测报警一张图-点位出参", description = "报警点位信息，供 GIS 地图按报警级别着色展示")
public class AlarmMapPointOutDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "报警ID")
    private String alarmId;

    @ApiModelProperty(value = "设备编码")
    private String deviceCode;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "设备位置")
    private String equipmentLocation;

    @ApiModelProperty(value = "经度")
    private String longitude;

    @ApiModelProperty(value = "纬度")
    private String latitude;

    @ApiModelProperty(value = "预警类型")
    private String warningType;

    @ApiModelProperty(value = "报警参数值")
    private BigDecimal actualValue;

    @ApiModelProperty(value = "报警等级：1-4，1级最高（用于地图着色）")
    private Integer alarmLevel;

    @ApiModelProperty(value = "报警等级文本")
    private String alarmLevelText;

    @ApiModelProperty(value = "报警时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime alarmTime;
}
