package cn.iocoder.yudao.module.bi.dal.dataobject.decision;
|
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
import com.baomidou.mybatisplus.annotation.KeySequence;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.*;
|
|
import java.math.BigDecimal;
|
|
/**
|
* 预警规则 DO
|
*
|
* @author 超级管理员
|
*/
|
@TableName("bi_alert_rule")
|
@KeySequence("bi_alert_rule_seq")
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@ToString(callSuper = true)
|
@Builder
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class BiAlertRuleDO extends BaseDO {
|
|
@TableId
|
private Long id;
|
|
/**
|
* 关联KPI指标ID
|
*/
|
private Long kpiId;
|
|
/**
|
* 规则名称
|
*/
|
private String name;
|
|
/**
|
* 严重级别:1-警告 2-严重 3-紧急
|
*/
|
private Integer severity;
|
|
/**
|
* 比较运算符
|
*/
|
private String comparisonOperator;
|
|
/**
|
* 阈值
|
*/
|
private BigDecimal thresholdValue;
|
|
/**
|
* 通知方式:system/message/email(逗号分隔)
|
*/
|
private String notificationType;
|
|
/**
|
* 是否启用:0-禁用 1-启用
|
*/
|
private Integer enabled;
|
|
/**
|
* 备注
|
*/
|
private String remark;
|
|
}
|