package com.writeoff.module.observability.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class CreateAlertRuleRequest {
    @NotBlank(message = "规则编码不能为空")
    private String ruleCode;
    @NotBlank(message = "规则名称不能为空")
    private String ruleName;
    @NotBlank(message = "比较符不能为空")
    private String compareOp;
    @NotNull(message = "阈值不能为空")
    private Double thresholdValue;
    @NotNull(message = "窗口分钟不能为空")
    private Integer windowMinute;
    private Integer suppressWindowMinute;
    private String status;

    public String getRuleCode() {
        return ruleCode;
    }

    public void setRuleCode(String ruleCode) {
        this.ruleCode = ruleCode;
    }

    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public String getCompareOp() {
        return compareOp;
    }

    public void setCompareOp(String compareOp) {
        this.compareOp = compareOp;
    }

    public Double getThresholdValue() {
        return thresholdValue;
    }

    public void setThresholdValue(Double thresholdValue) {
        this.thresholdValue = thresholdValue;
    }

    public Integer getWindowMinute() {
        return windowMinute;
    }

    public void setWindowMinute(Integer windowMinute) {
        this.windowMinute = windowMinute;
    }

    public Integer getSuppressWindowMinute() {
        return suppressWindowMinute;
    }

    public void setSuppressWindowMinute(Integer suppressWindowMinute) {
        this.suppressWindowMinute = suppressWindowMinute;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
