using SqlSugar;
namespace Model.Entity.Inspection
{
///
/// 告警通知规则(按告警级别配置通知渠道与接收人,支持值班排班关联与静默期)
///
public class AlertNotifyRuleEntity : BaseEntity
{
///
/// 规则名称
///
[SugarColumn(ColumnDescription = "规则名称", Length = 100)]
public string RuleName { get; set; }
///
/// 适用告警级别(信息/警告/紧急)
///
[SugarColumn(ColumnDescription = "适用告警级别")]
public AlertLevelEnum AlertLevel { get; set; }
///
/// 通知渠道Id(关联 AlertNotifyChannelEntity.Id)
///
[SugarColumn(ColumnDescription = "通知渠道Id")]
public long ChannelId { get; set; }
///
/// 接收人(@手机号/企微账号,逗号分隔,可空表示不@)
///
[SugarColumn(ColumnDescription = "接收人", Length = 500, IsNullable = true)]
public string Receivers { get; set; }
///
/// 是否通知当班值班人(按告警时间查值班排班表)
///
[SugarColumn(ColumnDescription = "是否通知值班人")]
public bool NotifyDutyPerson { get; set; }
///
/// 静默期(分钟):同一告警合并窗口内重复触发时,静默期内不重复推送,0表示每次必推
///
[SugarColumn(ColumnDescription = "静默期分钟")]
public int SilenceMinutes { get; set; } = 5;
///
/// 是否启用
///
[SugarColumn(ColumnDescription = "是否启用")]
public bool IsEnabled { get; set; } = true;
///
/// 备注
///
[SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
public string Remark { get; set; }
}
}