主要能力: SuperAdmin 专用入口:组织与权限 → 运维与审计。 操作日志分页查询,支持时间、账号、路径、方法和状态码筛选。 汇总自动排课、课表发布、补考安排三类失败后台任务。 实时检查数据库、缓存、任务通道及积压状态。 聚合 5xx、失败/重试任务、健康探针和备份时效告警。 SQLite 在线备份;MySQL 调用原生客户端备份。 SHA-256 校验及隔离数据库恢复演练,不覆盖业务库。 MySQL 强制使用独立运维连接,容器增加持久化备份卷与数据库客户端。
14 lines
503 B
C#
14 lines
503 B
C#
namespace Jiaowu.Api.Infrastructure.Operations;
|
|
|
|
public sealed class OperationsOptions
|
|
{
|
|
public const string SectionName = "Operations";
|
|
|
|
public string BackupDirectory { get; set; } = "data/backups";
|
|
public int BackupWarningHours { get; set; } = 24;
|
|
public int ToolTimeoutMinutes { get; set; } = 30;
|
|
public string MySqlDumpPath { get; set; } = "mysqldump";
|
|
public string MySqlClientPath { get; set; } = "mysql";
|
|
public string[] MySqlAdditionalArguments { get; set; } = [];
|
|
}
|