using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PMS.BusinessModels.CloudMonitorManage
{
///
/// 服务器预警
///
public class ServerAlertModel
{
public string ID { get; set; }
public string 渠道ID { get; set; }
public string 渠道名称 { get; set; }
public string 项目ID { get; set; }
public string 项目名称 { get; set; }
public string 服务器ID { get; set; }
public string 服务器IP { get; set; }
public int 预警类型 { get; set; }
public string 预警类型显示 { get; set; }
public string 异常说明 { get; set; }
public int 橙色预警次数 { get; set; }
public int 红色预警次数 { get; set; }
public int 预警次数 { get; set; }
public int 预警状态 { get; set; }
public string 预警状态显示 { get; set; }
public int 预警等级 { get; set; }
public string 预警等级显示 { get; set; }
public string 未处理状态 { get; set; }
public DateTime 创建时间 { get; set; }
public DateTime 最后上报时间 { get; set; }
public DateTime 处理时间 { get; set; }
public string 处理说明 { get; set; }
public string 持续时间 { get; set; }
public string 负责人 { get; set; }
public string 服务器类型显示 { get; set; }
public string 服务器类型 { get; set; }
///
/// 通常尽快下 使用服务器ID+预警类型就可以确定唯一,但是存在一种可能,不想合并到一条预警记录的时候(自定义预警),就使用外部唯一键
///
public string 外部唯一键 { get; set; }
//public List 预警详情列表 { get; set; }
}
///
/// 预警详情
///
public class ServerAlertDetailModel
{
public string ID { get; set; }
public string 预警ID { get; set; }
public string 预警名称 { get; set; }
public string 预警说明 { get; set; }
public string 当前值 { get; set; }
public int 预警等级 { get; set; }
public int 预警次数 { get; set; }
//冗余字段 不存数据库
public string 服务器ID { get; set; }
public string 项目ID { get; set; }
public int 预警类型 { get; set; }
///
/// 通常尽快下 使用服务器ID+预警类型就可以确定唯一,但是存在一种可能,不想合并到一条预警记录的时候(自定义预警),就使用外部唯一键
///
public string 外部唯一键 { get; set; }
public int 连续预警次数 { get; set; }
public DateTime 最后修改时间 { get; set; }
}
///
/// 撤回预警处理模型
///
public class AutomaticWarningProcessingModel
{
public string ID { get; set; }
public int 预警类型 { get; set; }
public int 预警次数 { get;set; }
public int 连续预警次数 { get; set; }
public DateTime 最后修改时间 { get; set; }
}
///
/// 预警处理
///
public class ServerAlertProcessModel
{
public string ID { get; set; }
public string 预警ID { get; set; }
public string 处理人 { get; set; }
public string 处理说明 { get; set; }
public int 处理状态 { get; set; }
public string 处理状态显示 { get; set; }
public DateTime 创建时间 { get; set; }
}
///
/// 预警查询
///
public class ServerAlertSearch
{
public string QDID { get; set; }
public string XMID { get; set; }
public string YJLXID { get; set; }
public string ZT { get; set; }
public string CONTENT { get; set; }
public string WCLZT { get; set; }
}
///
/// 指标查询
///
public class IndexSearch
{
public string QDID { get; set; }
public string XMID { get; set; }
public string ZBLX { get; set; }
public string ZT { get; set; }
public DateTime KSSJ { get; set; }
public DateTime JSSJ { get; set; }
public string CONTENT { get; set; }
public int page { get; set; }
public int rows { get; set; }
}
public enum AlertTypeEnum
{
硬件CPU = 1,
硬件内存 = 2,
硬件磁盘空间 = 3,
服务中断 = 4,
采集中断 = 5,
磁盘可用天数 = 6,
数据库连接数不足 = 7,
数据库死锁 = 8,
自定义指标 = 9,
自定义服务 = 10
}
public enum AlertStateEnum
{
未处理 = 1,
开始处理 = 2,
处理中 = 3,
已处理 = 4
}
public enum AlertLevelEnum
{
橙色预警 = 1,
红色预警 = 2
}
}