using System;
using System.Collections.Generic;
using System.Text;
namespace Admin.Core.Common
{
///
/// Reids相关视图
///
public class RedisServerView
{
///
/// 服务器信息
///
public string Server { get; set; }
///
/// 节点信息
///
public List Points { get; set; } = new List();
///
/// 节点与Key信息
///
public List Pointkeys { get; set; } = new List();
}
public class RedisKeyView
{
///
/// 服务器信息
///
public string Server { get; set; }
///
/// 节点信息
///
public string Point { get; set; }
///
/// Key信息
///
public string Key { get; set; }
}
///
/// 节点状态
///
public class PointStatus
{
///
/// 服务器信息
///
public string Server { get; set; }
///
/// 节点信息
///
public string Point { get; set; }
///
/// 状态信息:是否正常连接并可用
///
public bool Normal { get; set; }
///
/// 缓存Key数量
///
public int KeyN { get; set; }
}
///
/// 节点与Key信息
///
public class Pointkey
{
///
/// 节点信息
///
public string Point { get; set; }
///
/// Key信息
///
public List Key { get; set; } = new List();
}
public class RedisBaseView
{
///
/// 版本号
///
public string redis_version { get; set; }
///
/// 运行模式:单机/群集
///
public string redis_mode { get; set; }
///
/// 客户端数
///
public string connected_clients { get; set; }
///
/// 运行时间(天)
///
public string uptime_in_days { get; set; }
///
/// 使用CPU
///
public string used_cpu_user_children { get; set; }
///
/// 内存配置
///
public string maxmemory_human { get; set; }
///
/// AOF是否开启
///
public string aof_enabled { get; set; }
///
/// RDB是否成功
///
public string rdb_last_bgsave_status { get; set; }
///
/// Key数量
///
public string dbSize { get; set; }
///
/// 网络入口
///
public string instantaneous_input_kbps { get; set; }
///
/// 网络出口
///
public string instantaneous_output_kbps { get; set; }
}
}