# -*- coding: utf-8 -*-
"""
display_names.py — KEY→中文显示名映射

移植参考脚本 Get-DisplayName 的核心子集部分。
仅包含本期涉及的 system(01/02/03/04) + docker-basic + mysql-basic + redis-basic。
"""

from typing import Dict

DISPLAY_NAMES: Dict[str, str] = {
    # ---- 01 系统基础信息 ----
    "HOSTNAME": "主机名",
    "OS_VERSION": "操作系统版本",
    "KERNEL_VERSION": "内核版本",
    "UPTIME_DAYS": "运行天数",
    "LOAD_1MIN": "1分钟负载",
    "LOAD_5MIN": "5分钟负载",
    "LOAD_15MIN": "15分钟负载",
    "CPU_CORES": "CPU核心数",
    "ARCHITECTURE": "系统架构",
    "NUMA_NODES": "NUMA节点数",
    "NUMA_STATUS": "NUMA状态",
    "BOOT_TIME": "启动时间",
    "MEMORY_TOTAL": "总内存",
    "SWAP_TOTAL": "总交换空间",
    "ULIMIT_INFO": "系统资源限制",
    "KERNEL_CMDLINE": "内核启动参数",
    "FS_FILE_MAX": "文件描述符最大值",
    "INOTIFY_MAX_WATCHES": "inotify最大监听数",
    "NET_SOMAXCONN": "监听队列最大长度",
    "TCP_FIN_TIMEOUT": "TCP FIN超时时间",
    "TCP_KEEPALIVE_TIME": "TCP KeepAlive时间",

    # ---- 02 CPU检测 ----
    "CPU_USAGE": "CPU使用率",
    "CPU_USER": "CPU用户态使用率",
    "CPU_SYSTEM": "CPU系统态使用率",
    "CPU_PER_CORE": "各核心CPU使用率",
    "CPU_TOP10_PROCESSES": "CPU占用TOP10进程",
    "CPU_CONTEXT_SWITCHES": "CPU上下文切换次数",
    "CPU_INTERRUPTS": "CPU中断次数",
    "IRQ_DETAIL": "中断详情",
    "SOFTIRQS": "软中断统计",
    "SCHEDULER_RUNQUEUE": "调度器运行队列长度",
    "SCHEDULER_PROCS_RUNNING": "调度器可运行进程数",
    "SCHEDULER_BLOCKED_STATUS": "调度器阻塞状态",
    "CPU_AFFINITY_SAMPLE": "CPU亲和性示例",
    "CPU_STATUS": "CPU状态",

    # ---- 03 内存检测 ----
    "MEMORY_USED": "已用内存",
    "MEMORY_FREE": "空闲内存",
    "MEMORY_TOTAL": "总内存",
    "MEMORY_BUFFERS": "内存缓冲区",
    "MEMORY_CACHED": "内存缓存",
    "MEMORY_USAGE": "内存使用率",
    "MEMORY_TOP5_PROCESSES": "内存占用TOP5进程",
    "MEMORY_PRESSURE": "内存压力",
    "MEMORY_PRESSURE_AVG10": "内存压力(avg10)",
    "MEMORY_PRESSURE_AVG60": "内存压力(avg60)",
    "SWAP_USED": "已用交换空间",
    "SWAP_USAGE": "交换空间使用率",
    "SWAP_STATUS": "交换空间状态",
    "SLAB_TOTAL": "Slab缓存总量",
    "SLAB_RECLAIMABLE": "可回收Slab缓存",
    "HUGEPAGES_TOTAL": "大页总数",
    "HUGEPAGES_FREE": "空闲大页数",
    "HUGEPAGES_SIZE": "大页大小",
    "TRANSPARENT_HUGEPAGE": "透明大页状态",
    "VM_PSWPIN": "换入页面数",
    "VM_PSWPOUT": "换出页面数",
    "MEMORY_STATUS": "内存状态",

    # ---- 04 磁盘检测 ----
    "DISK_USAGE": "磁盘使用率",
    "DISK_PARTITIONS": "磁盘分区信息",
    "DISK_IO_STATUS": "磁盘IO状态",
    "DISK_READ_SPEED": "磁盘读取速度",
    "DISK_WRITE_SPEED": "磁盘写入速度",
    "DISK_SMART_STATUS": "磁盘SMART状态",
    "DISK_LATENCY": "磁盘延迟",
    "DISK_SPEED_TEST": "磁盘速度测试",
    "RAID_DEVICES": "RAID设备",
    "RAID_STATUS": "RAID状态",
    "LVM_VOLUMES": "LVM卷信息",
    "LVM_STATUS": "LVM状态",
    "REMOTE_MOUNTS": "远程挂载点",
    "REMOTE_MOUNTS_COUNT": "远程挂载数量",

    # ---- 20 Docker基础 ----
    "DOCKER_SERVICE_STATUS": "Docker服务状态",
    "DOCKER_SERVICE_LEVEL": "Docker服务等级",
    "CONTAINER_TOTAL": "容器总数",
    "CONTAINER_RUNNING": "运行中容器数",
    "CONTAINER_STOPPED": "已停止容器数",
    "DOCKER_IMAGES_SIZE": "Docker镜像总大小",
    "DOCKER_CONTAINERS_SIZE": "Docker容器总大小",
    "DOCKER_VOLUMES_SIZE": "Docker卷总大小",
    "DOCKER_LARGE_LOGS": "大日志容器数",
    "DOCKER_NETWORKS": "Docker网络数",

    # ---- 22 MySQL基础 ----
    "MYSQL_CONTAINER_STATUS": "MySQL容器状态",
    "MYSQL_CONTAINER_LEVEL": "MySQL容器等级",
    "MYSQL_VERSION": "MySQL版本",
    "MYSQL_CONNECTED": "MySQL连接状态",
    "MYSQL_CONNECTION_LEVEL": "MySQL连接等级",
    "MYSQL_UPTIME_DAYS": "MySQL运行天数",
    "MYSQL_CONNECTIONS_CURRENT": "MySQL当前连接数",
    "MYSQL_CONNECTIONS_MAX": "MySQL最大连接数",
    "MYSQL_CONNECTIONS_USAGE": "MySQL连接使用率",
    "MYSQL_CONNECTIONS_LEVEL": "MySQL连接等级",
    "MYSQL_THREADS_RUNNING": "MySQL活跃线程数",
    "MYSQL_SLOW_QUERIES": "MySQL慢查询数",
    "MYSQL_SLOW_QUERY_TIME": "MySQL慢查询阈值",
    "MYSQL_SLOW_QUERY_LEVEL": "MySQL慢查询等级",
    "MYSQL_SLAVE_IO": "MySQL从库IO线程",
    "MYSQL_SLAVE_SQL": "MySQL从库SQL线程",
    "MYSQL_SLAVE_DELAY": "MySQL主从延迟",
    "MYSQL_SLAVE_DELAY_LEVEL": "MySQL主从延迟等级",
    "MYSQL_REPLICATION_STATUS": "MySQL复制状态",
    "MYSQL_OPEN_TABLES": "MySQL打开表数",
    "MYSQL_TABLE_CACHE": "MySQL表缓存",
    "MYSQL_TABLE_USAGE": "MySQL表缓存使用率",
    "MYSQL_INNODB_BUFFER_POOL": "MySQL InnoDB缓冲池",
    "MYSQL_INNODB_HIT_RATE": "MySQL InnoDB命中率",
    "MYSQL_INNODB_HIT_LEVEL": "MySQL InnoDB命中等级",
    "MYSQL_CHARSET": "MySQL字符集",
    "MYSQL_COLLATION": "MySQL排序规则",

    # ---- 24 Redis基础 ----
    "REDIS_CONTAINER_STATUS": "Redis容器状态",
    "REDIS_CONTAINER_LEVEL": "Redis容器等级",
    "REDIS_VERSION": "Redis版本",
    "REDIS_CONNECTED": "Redis连接状态",
    "REDIS_CONNECTION_LEVEL": "Redis连接等级",
    "REDIS_UPTIME_DAYS": "Redis运行天数",
    "REDIS_KEYS": "Redis键数量",
    "REDIS_KEYS_LEVEL": "Redis键数量等级",
    "REDIS_MEMORY_USED": "Redis内存使用",
    "REDIS_MEMORY_MAX": "Redis最大内存",
    "REDIS_MEMORY_USAGE": "Redis内存使用率",
    "REDIS_MEMORY_LEVEL": "Redis内存等级",
    "REDIS_MEM_FRAGMENTATION": "Redis内存碎片率",
    "REDIS_MEM_FRAG_LEVEL": "Redis内存碎片等级",
    "REDIS_CLIENTS": "Redis客户端数",
    "REDIS_CLIENTS_USAGE": "Redis客户端使用率",
    "REDIS_CLIENTS_LEVEL": "Redis客户端等级",
    "REDIS_BLOCKED_CLIENTS": "Redis阻塞客户端数",
    "REDIS_OPS_PER_SEC": "Redis每秒操作数",
    "REDIS_HIT_RATE": "Redis缓存命中率",
    "REDIS_HIT_RATE_LEVEL": "Redis命中率等级",
    "REDIS_ROLE": "Redis角色",
    "REDIS_SLAVES": "Redis从库数",
    "REDIS_MASTER_LINK": "Redis主库连接",
    "REDIS_REPLICATION_LEVEL": "Redis复制等级",
    "REDIS_RDB_AGE": "Redis RDB年龄",
    "REDIS_AOF": "Redis AOF状态",
    "REDIS_TOTAL_CONNECTIONS": "Redis总连接数",
    "REDIS_TOTAL_COMMANDS": "Redis总命令数",
}
