AdoS8AlertRule.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S8;
  2. [SugarTable("ado_s8_alert_rule", "S8 报警规则")]
  3. public class AdoS8AlertRule
  4. {
  5. [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  6. public long Id { get; set; }
  7. [SugarColumn(ColumnName = "tenant_id", ColumnDataType = "bigint")]
  8. public long TenantId { get; set; }
  9. [SugarColumn(ColumnName = "factory_id", ColumnDataType = "bigint")]
  10. public long FactoryId { get; set; }
  11. [SugarColumn(ColumnName = "rule_code", Length = 64)]
  12. public string RuleCode { get; set; } = string.Empty;
  13. [SugarColumn(ColumnName = "scene_code", Length = 64)]
  14. public string SceneCode { get; set; } = string.Empty;
  15. /// <summary>S8 业务枚举 FOLLOW(关注)/ SERIOUS(严重)。</summary>
  16. [SugarColumn(ColumnName = "severity", Length = 32)]
  17. public string Severity { get; set; } = "FOLLOW";
  18. [SugarColumn(ColumnName = "trigger_condition", Length = 512, IsNullable = true)]
  19. public string? TriggerCondition { get; set; }
  20. [SugarColumn(ColumnName = "threshold_val", Length = 128, IsNullable = true)]
  21. public string? ThresholdVal { get; set; }
  22. [SugarColumn(ColumnName = "time_window", Length = 64, IsNullable = true)]
  23. public string? TimeWindow { get; set; }
  24. [SugarColumn(ColumnName = "created_at")]
  25. public DateTime CreatedAt { get; set; } = DateTime.Now;
  26. [SugarColumn(ColumnName = "updated_at", IsNullable = true)]
  27. public DateTime? UpdatedAt { get; set; }
  28. }