package com.njcn.process.pojo.param;

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

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <策略监测点绑定>
 *
 * @author wr
 * @createTime: 2023-03-22
 */

@Data
public class MonitorParam {

    @ApiModelProperty(value = "单位id")
    @NotBlank(message = "单位id不能为空")
    private String deptId;

    @ApiModelProperty(value = "类型 0.预警策略 1.告警策略")
    @NotNull(message = "类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "等级 0.自动策略 1.手动策略 2.排他策略")
    @NotNull(message = "等级不能为空")
    private Integer grade;

    @ApiModelProperty(value = "预警策略/告警策略id")
    @NotEmpty(message = "策略id集合不能为空")
    private List<String> alarmId;

    @ApiModelProperty(value = "监测点id")
    @NotEmpty(message = "监测点id集合不能为空")
    private List<String> monitorId;


}
