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

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 供水监测报警阈值-保存入参（支持批量、分类设置与分时阈值）
 */
@Data
@ApiModel(value = "供水监测报警阈值-保存入参", description = "支持一个阈值规则批量应用到多个设备，支持分时生效")
public class WaterThresholdSaveInDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "设备编码列表（批量设置时传入多个）", required = true, example = "[\"SB001\",\"SB002\"]")
    private java.util.List<String> deviceCodes;

    @ApiModelProperty(value = "预警类型", required = true, example = "水位预警")
    private String warningType;

    @ApiModelProperty(value = "预警编码", required = true, example = "WARN-WATER-LEVEL")
    private String warningCode;

    @ApiModelProperty(value = "预警最小值，小于等于该值视为报警", example = "0.5")
    private Double minValue;

    @ApiModelProperty(value = "预警最大值，大于等于该值视为报警", example = "3.0")
    private Double maxValue;

    @ApiModelProperty(value = "分时生效开始时间（HH:mm），为空表示全天生效", example = "08:00")
    private String periodStart;

    @ApiModelProperty(value = "分时生效结束时间（HH:mm），为空表示全天生效", example = "20:00")
    private String periodEnd;

    @ApiModelProperty(value = "备注", example = "供水高峰期水位阈值")
    private String remark;
}
