业务全部在独立模块仓库(foms / dbbackup / filesync / hostwatch), 本仓只做:入口组装、build、conf、start/stop、首页、RBAC 权限注册。 内容: · app/foms.py 入口,按序 load 全部模块 · app/global_func.py get_module_dbname(统一库 foms) · build.sh clone+安装全部模块、生成 DDL/CRUD、挂载 wwwroot · conf/config.json website.paths:foms 根路径 + 三模块前缀 · init/data.yaml 全部 codes(含拆分后新增的 codes) · scripts/load_path.py 重写为新 URL 布局 · wwwroot/index.ui 首页(指向各模块前缀路径) 从 foms 仓库迁出的应用层文件(app/build/conf/start/stop/index.ui/data.yaml/ init_rbac/load_path)在 foms 侧已删除。
361 lines
6.8 KiB
YAML
361 lines
6.8 KiB
YAML
appcodes:
|
||
- id: cluster_status
|
||
name: 集群状态
|
||
hierarchy_flg: 0
|
||
- id: node_role
|
||
name: 节点角色
|
||
hierarchy_flg: 0
|
||
- id: node_status
|
||
name: 节点状态
|
||
hierarchy_flg: 0
|
||
- id: failover_mode
|
||
name: 切换触发模式
|
||
hierarchy_flg: 0
|
||
- id: cmd_status
|
||
name: 命令状态
|
||
hierarchy_flg: 0
|
||
- id: cmd_type
|
||
name: 命令类型
|
||
hierarchy_flg: 0
|
||
- id: step_status
|
||
name: 切换步骤状态
|
||
hierarchy_flg: 0
|
||
- id: sync_status
|
||
name: 同步状态
|
||
hierarchy_flg: 0
|
||
- id: sync_result
|
||
name: 同步结果
|
||
hierarchy_flg: 0
|
||
- id: backup_type
|
||
name: 备份类型
|
||
hierarchy_flg: 0
|
||
- id: backup_status
|
||
name: 备份记录状态
|
||
hierarchy_flg: 0
|
||
- id: match_type
|
||
name: 规则匹配类型
|
||
hierarchy_flg: 0
|
||
- id: severity
|
||
name: 告警级别
|
||
hierarchy_flg: 0
|
||
- id: event_status
|
||
name: 告警事件状态
|
||
hierarchy_flg: 0
|
||
- id: switchover_event_type
|
||
name: 切换事件类型
|
||
hierarchy_flg: 0
|
||
- id: switchover_trigger
|
||
name: 触发方式
|
||
hierarchy_flg: 0
|
||
- id: switchover_status
|
||
name: 切换执行状态
|
||
hierarchy_flg: 0
|
||
- id: org_type
|
||
name: 机构类型
|
||
hierarchy_flg: 0
|
||
- id: user_status
|
||
name: 用户状态
|
||
hierarchy_flg: 0
|
||
- id: log_level
|
||
name: 日志级别
|
||
hierarchy_flg: 0
|
||
|
||
appcodes_kv:
|
||
- id: cluster_status_running
|
||
parentid: cluster_status
|
||
k: running
|
||
v: 运行中
|
||
- id: cluster_status_stopped
|
||
parentid: cluster_status
|
||
k: stopped
|
||
v: 已停止
|
||
- id: cluster_status_switching
|
||
parentid: cluster_status
|
||
k: switching
|
||
v: 切换中
|
||
- id: cluster_status_error
|
||
parentid: cluster_status
|
||
k: error
|
||
v: 异常
|
||
|
||
- id: node_role_master
|
||
parentid: node_role
|
||
k: master
|
||
v: 主机
|
||
- id: node_role_standby
|
||
parentid: node_role
|
||
k: standby
|
||
v: 备机
|
||
|
||
- id: node_status_online
|
||
parentid: node_status
|
||
k: online
|
||
v: 在线
|
||
- id: node_status_offline
|
||
parentid: node_status
|
||
k: offline
|
||
v: 离线
|
||
- id: node_status_error
|
||
parentid: node_status
|
||
k: error
|
||
v: 异常
|
||
|
||
- id: failover_mode_auto
|
||
parentid: failover_mode
|
||
k: auto
|
||
v: 全自动
|
||
- id: failover_mode_semi
|
||
parentid: failover_mode
|
||
k: semi
|
||
v: 半自动(告警+人工确认)
|
||
- id: failover_mode_manual
|
||
parentid: failover_mode
|
||
k: manual
|
||
v: 纯手动
|
||
|
||
- id: cmd_status_pending
|
||
parentid: cmd_status
|
||
k: pending
|
||
v: 待执行
|
||
- id: cmd_status_running
|
||
parentid: cmd_status
|
||
k: running
|
||
v: 执行中
|
||
- id: cmd_status_success
|
||
parentid: cmd_status
|
||
k: success
|
||
v: 成功
|
||
- id: cmd_status_failed
|
||
parentid: cmd_status
|
||
k: failed
|
||
v: 失败
|
||
|
||
- id: cmd_type_shell
|
||
parentid: cmd_type
|
||
k: shell
|
||
v: 普通命令
|
||
- id: cmd_type_fence
|
||
parentid: cmd_type
|
||
k: fence
|
||
v: 隔离(停库+摘VIP)
|
||
- id: cmd_type_unfence
|
||
parentid: cmd_type
|
||
k: unfence
|
||
v: 恢复(起库+还VIP)
|
||
- id: cmd_type_promote
|
||
parentid: cmd_type
|
||
k: promote_master
|
||
v: 提升为主库
|
||
- id: cmd_type_revert_promote
|
||
parentid: cmd_type
|
||
k: revert_promote
|
||
v: 降回从库
|
||
- id: cmd_type_flip_sync
|
||
parentid: cmd_type
|
||
k: flip_sync
|
||
v: 反转同步方向
|
||
- id: cmd_type_verify
|
||
parentid: cmd_type
|
||
k: verify
|
||
v: 切换后校验
|
||
|
||
- id: step_status_pending
|
||
parentid: step_status
|
||
k: pending
|
||
v: 待执行
|
||
- id: step_status_running
|
||
parentid: step_status
|
||
k: running
|
||
v: 执行中
|
||
- id: step_status_success
|
||
parentid: step_status
|
||
k: success
|
||
v: 成功
|
||
- id: step_status_failed
|
||
parentid: step_status
|
||
k: failed
|
||
v: 失败
|
||
- id: step_status_skipped
|
||
parentid: step_status
|
||
k: skipped
|
||
v: 跳过
|
||
|
||
- id: sync_status_not_configured
|
||
parentid: sync_status
|
||
k: not_configured
|
||
v: 未配置
|
||
- id: sync_status_running
|
||
parentid: sync_status
|
||
k: running
|
||
v: 同步中
|
||
- id: sync_status_error
|
||
parentid: sync_status
|
||
k: error
|
||
v: 异常
|
||
- id: sync_status_failed
|
||
parentid: sync_status
|
||
k: failed
|
||
v: 失败
|
||
|
||
- id: sync_result_success
|
||
parentid: sync_result
|
||
k: success
|
||
v: 成功
|
||
- id: sync_result_failed
|
||
parentid: sync_result
|
||
k: failed
|
||
v: 失败
|
||
- id: sync_result_running
|
||
parentid: sync_result
|
||
k: running
|
||
v: 同步中
|
||
|
||
- id: backup_type_full
|
||
parentid: backup_type
|
||
k: full
|
||
v: 全量
|
||
- id: backup_type_incremental
|
||
parentid: backup_type
|
||
k: incremental
|
||
v: 增量
|
||
|
||
- id: backup_status_running
|
||
parentid: backup_status
|
||
k: running
|
||
v: 执行中
|
||
- id: backup_status_success
|
||
parentid: backup_status
|
||
k: success
|
||
v: 成功
|
||
- id: backup_status_failed
|
||
parentid: backup_status
|
||
k: failed
|
||
v: 失败
|
||
- id: backup_status_expired
|
||
parentid: backup_status
|
||
k: expired
|
||
v: 已过期
|
||
|
||
- id: match_type_keyword
|
||
parentid: match_type
|
||
k: keyword
|
||
v: 关键词
|
||
- id: match_type_regex
|
||
parentid: match_type
|
||
k: regex
|
||
v: 正则
|
||
|
||
- id: severity_info
|
||
parentid: severity
|
||
k: info
|
||
v: 提示
|
||
- id: severity_warning
|
||
parentid: severity
|
||
k: warning
|
||
v: 警告
|
||
- id: severity_critical
|
||
parentid: severity
|
||
k: critical
|
||
v: 严重
|
||
|
||
- id: event_status_open
|
||
parentid: event_status
|
||
k: open
|
||
v: 未处理
|
||
- id: event_status_closed
|
||
parentid: event_status
|
||
k: closed
|
||
v: 已关闭
|
||
|
||
- id: switchover_event_failover
|
||
parentid: switchover_event_type
|
||
k: failover
|
||
v: 故障切换
|
||
- id: switchover_event_failback
|
||
parentid: switchover_event_type
|
||
k: failback
|
||
v: 故障切回
|
||
- id: switchover_event_manual
|
||
parentid: switchover_event_type
|
||
k: manual
|
||
v: 手动操作
|
||
- id: switchover_event_fault_detected
|
||
parentid: switchover_event_type
|
||
k: fault_detected
|
||
v: 故障检测
|
||
|
||
- id: switchover_trigger_auto
|
||
parentid: switchover_trigger
|
||
k: auto
|
||
v: 自动检测
|
||
- id: switchover_trigger_auto_detect
|
||
parentid: switchover_trigger
|
||
k: auto_detect
|
||
v: 健康判定器检测
|
||
- id: switchover_trigger_manual
|
||
parentid: switchover_trigger
|
||
k: manual
|
||
v: 手动触发
|
||
- id: switchover_trigger_manual_confirm
|
||
parentid: switchover_trigger
|
||
k: manual_confirm
|
||
v: 人工确认
|
||
|
||
- id: switchover_status_pending
|
||
parentid: switchover_status
|
||
k: pending
|
||
v: 等待执行
|
||
- id: switchover_status_detected
|
||
parentid: switchover_status
|
||
k: detected
|
||
v: 已检测到
|
||
- id: switchover_status_in_progress
|
||
parentid: switchover_status
|
||
k: in_progress
|
||
v: 执行中
|
||
- id: switchover_status_success
|
||
parentid: switchover_status
|
||
k: success
|
||
v: 成功
|
||
- id: switchover_status_completed
|
||
parentid: switchover_status
|
||
k: completed
|
||
v: 已完成
|
||
- id: switchover_status_failed
|
||
parentid: switchover_status
|
||
k: failed
|
||
v: 失败
|
||
- id: switchover_status_rollback_failed
|
||
parentid: switchover_status
|
||
k: rollback_failed
|
||
v: 回滚失败(人工介入)
|
||
|
||
- id: org_type_foms
|
||
parentid: org_type
|
||
k: foms_org
|
||
v: FOMS运维组织
|
||
- id: user_status_active
|
||
parentid: user_status
|
||
k: 0
|
||
v: 正常
|
||
- id: user_status_disabled
|
||
parentid: user_status
|
||
k: 1
|
||
v: 停用
|
||
- id: log_level_info
|
||
parentid: log_level
|
||
k: INFO
|
||
v: 信息
|
||
- id: log_level_warn
|
||
parentid: log_level
|
||
k: WARN
|
||
v: 警告
|
||
- id: log_level_error
|
||
parentid: log_level
|
||
k: ERROR
|
||
v: 错误
|
||
- id: log_level_crit
|
||
parentid: log_level
|
||
k: CRIT
|
||
v: 严重
|