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;
|
import java.time.LocalDateTime;
|
|
/**
|
* 预警记录 DO
|
*
|
* @author 超级管理员
|
*/
|
@TableName("bi_alert_record")
|
@KeySequence("bi_alert_record_seq")
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@ToString(callSuper = true)
|
@Builder
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class BiAlertRecordDO extends BaseDO {
|
|
@TableId
|
private Long id;
|
|
/**
|
* 关联规则ID
|
*/
|
private Long ruleId;
|
|
/**
|
* 关联KPI指标ID
|
*/
|
private Long kpiId;
|
|
/**
|
* KPI编码(冗余)
|
*/
|
private String kpiCode;
|
|
/**
|
* KPI名称(冗余)
|
*/
|
private String kpiName;
|
|
/**
|
* 实际值
|
*/
|
private BigDecimal actualValue;
|
|
/**
|
* 阈值(冗余)
|
*/
|
private BigDecimal thresholdValue;
|
|
/**
|
* 严重级别
|
*/
|
private Integer severity;
|
|
/**
|
* 预警消息
|
*/
|
private String alertMessage;
|
|
/**
|
* 状态:0-未处理 1-已确认 2-已处理
|
*/
|
private Integer status;
|
|
/**
|
* 处理人ID
|
*/
|
private Long handlerId;
|
|
/**
|
* 处理时间
|
*/
|
private LocalDateTime handleTime;
|
|
/**
|
* 处理备注
|
*/
|
private String handleRemark;
|
|
/**
|
* 触发时间
|
*/
|
private LocalDateTime triggeredTime;
|
|
}
|