CloudMonitorConfig.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace PMS.BusinessModels.CloudMonitorManage
  7. {
  8. /// <summary>
  9. /// 云监控的全部配置
  10. /// </summary>
  11. [Serializable]
  12. public class CloudMonitorConfig
  13. {
  14. public AlertConfig AlertConfig { get; set; }
  15. public CollectionConfig CollectionConfig { get; set; }
  16. }
  17. /// <summary>
  18. /// 采集配置
  19. /// </summary>
  20. [Serializable]
  21. public class CollectionConfig
  22. {
  23. /// <summary>
  24. /// 单位分钟
  25. /// </summary>
  26. public int 服务器硬件信息执行频率 { get; set; }
  27. public int 服务运行状态执行频率 { get; set; }
  28. public int 数据库连接数执行频率 { get; set; }
  29. public int 数据库死锁执行频率 { get; set; }
  30. public int 采集服务中断执行频率 { get; set; }
  31. }
  32. /// <summary>
  33. /// 预警配置
  34. /// </summary>
  35. [Serializable]
  36. public class AlertConfig
  37. {
  38. /// <summary>
  39. /// 单位%
  40. /// </summary>
  41. public int CPU使用濒危 { get; set; }
  42. public int CPU使用高危 { get; set; }
  43. /// <summary>
  44. /// 单位秒
  45. /// </summary>
  46. public int CPU预警持续时间 { get; set; }
  47. public int 内存使用濒危 { get; set; }
  48. public int 内存使用高危 { get; set; }
  49. public int 内存预警持续时间 { get; set; }
  50. public int 磁盘使用濒危 { get; set; }
  51. public int 磁盘使用高危 { get; set; }
  52. public int 磁盘预警续时间 { get; set; }
  53. /// <summary>
  54. /// 单位天
  55. /// </summary>
  56. public int 磁盘预计可用天数濒危 { get; set; }
  57. public int 磁盘预计可用天数高危 { get; set; }
  58. /// <summary>
  59. /// 单位次
  60. /// </summary>
  61. public int 后台服务中断高危 { get; set; }
  62. public int 采集服务中断高危 { get; set; }
  63. /// <summary>
  64. /// 单位个
  65. /// </summary>
  66. public int 数据库剩余连接濒危 { get; set; }
  67. public int 数据库剩余连接高危 { get; set; }
  68. public string 工作开始时间 { get; set; }
  69. public string 工作结束时间 { get; set; }
  70. public string 邮件推送开关 { get; set; }
  71. public string 邮箱推送账号 { get; set; }
  72. public string 微信消息开关 { get; set; }
  73. public string 微信推送帐号 { get; set; }
  74. public int 未及时处理预警橙色 { get; set; } = 15;
  75. public int 未及时处理预警红色 { get; set; } = 1440;
  76. }
  77. }