using SqlSugar; using System; namespace Model.Entity.Inspection { /// /// 告警通知推送日志(每次向渠道推送的结果记录,失败可追溯) /// public class AlertNotifyLogEntity : BaseEntity { /// /// 告警消息Id(关联 AlertMessageEntity.Id,0表示渠道测试推送) /// [SugarColumn(ColumnDescription = "告警消息Id")] public long AlertId { get; set; } /// /// 渠道类型(1飞书/2钉钉/3企微) /// [SugarColumn(ColumnDescription = "渠道类型")] public NotifyChannelTypeEnum ChannelType { get; set; } /// /// 渠道Id(关联 AlertNotifyChannelEntity.Id) /// [SugarColumn(ColumnDescription = "渠道Id")] public long ChannelId { get; set; } /// /// 推送目标(Webhook 地址脱敏展示) /// [SugarColumn(ColumnDescription = "推送目标", Length = 200, IsNullable = true)] public string Target { get; set; } /// /// 推送内容摘要 /// [SugarColumn(ColumnDescription = "推送内容", Length = 1000, IsNullable = true)] public string Content { get; set; } /// /// 是否成功 /// [SugarColumn(ColumnDescription = "是否成功")] public bool Success { get; set; } /// /// 错误信息 /// [SugarColumn(ColumnDescription = "错误信息", Length = 500, IsNullable = true)] public string ErrorMsg { get; set; } /// /// 重试次数 /// [SugarColumn(ColumnDescription = "重试次数")] public int RetryCount { get; set; } /// /// 推送时间 /// [SugarColumn(ColumnDescription = "推送时间")] public DateTime NotifyTime { get; set; } } }