1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PMS.BusinessModels.CloudMonitorManage
- {
- /// <summary>
- /// 云监控的全部配置
- /// </summary>
- [Serializable]
- public class CloudMonitorConfig
- {
- public AlertConfig AlertConfig { get; set; }
- public CollectionConfig CollectionConfig { get; set; }
- }
- /// <summary>
- /// 采集配置
- /// </summary>
- [Serializable]
- public class CollectionConfig
- {
- /// <summary>
- /// 单位分钟
- /// </summary>
- public int 服务器硬件信息执行频率 { get; set; }
- public int 服务运行状态执行频率 { get; set; }
- public int 数据库连接数执行频率 { get; set; }
- public int 数据库死锁执行频率 { get; set; }
- public int 采集服务中断执行频率 { get; set; }
- }
- /// <summary>
- /// 预警配置
- /// </summary>
- [Serializable]
- public class AlertConfig
- {
- /// <summary>
- /// 单位%
- /// </summary>
- public int CPU使用濒危 { get; set; }
- public int CPU使用高危 { get; set; }
- /// <summary>
- /// 单位秒
- /// </summary>
- public int CPU预警持续时间 { get; set; }
- public int 内存使用濒危 { get; set; }
- public int 内存使用高危 { get; set; }
- public int 内存预警持续时间 { get; set; }
- public int 磁盘使用濒危 { get; set; }
- public int 磁盘使用高危 { get; set; }
- public int 磁盘预警续时间 { get; set; }
- /// <summary>
- /// 单位天
- /// </summary>
- public int 磁盘预计可用天数濒危 { get; set; }
- public int 磁盘预计可用天数高危 { get; set; }
- /// <summary>
- /// 单位次
- /// </summary>
- public int 后台服务中断高危 { get; set; }
- public int 采集服务中断高危 { get; set; }
- /// <summary>
- /// 单位个
- /// </summary>
- public int 数据库剩余连接濒危 { get; set; }
- public int 数据库剩余连接高危 { get; set; }
- public string 工作开始时间 { get; set; }
- public string 工作结束时间 { get; set; }
- public string 邮件推送开关 { get; set; }
- public string 邮箱推送账号 { get; set; }
- public string 微信消息开关 { get; set; }
- public string 微信推送帐号 { get; set; }
- public int 未及时处理预警橙色 { get; set; } = 15;
- public int 未及时处理预警红色 { get; set; } = 1440;
- }
- }
|