package com.njcn.device.pq.pojo.param;

import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.device.pq.pojo.constant.DeviceValidMessage;
import com.njcn.web.constant.ValidMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @version 1.0.0
 * @author: chenchao
 * @date: 2022/06/23 14:54
 */
@Data
public class AlarmStrategyParam {

    @ApiModelProperty(value = "告警策略Id 关联字典表id", required = true)
    @NotBlank(message = DeviceValidMessage.ID_NOT_BLANK)
    @Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
    private String id;

    @ApiModelProperty(value = "数据完整性标准", required = true)
    private Integer integrityValue;

    @ApiModelProperty(value = "在线率标准", required = true)
    private Integer onlineValue;

    @ApiModelProperty(value = "离线持续时间", required = true)
    private Integer offTimeValue;

    @ApiModelProperty(value = "告警次数", required = true)
    private Integer warnValue;


}
