feat: 更新项目进度,完成 Phase 4 和 Phase 5,添加监控与健康检查功能

This commit is contained in:
锦麟 王
2026-02-05 10:32:52 +08:00
parent df76882178
commit 23bf2cfaef
11 changed files with 1588 additions and 41 deletions

View File

@@ -1,8 +1,15 @@
"""核心模块
提供配置管理、日志系统、数据库等基础功能
提供配置管理、日志系统、数据库、监控、缓存等基础功能
"""
from minenasai.core.cache import (
MemoryCache,
RateLimiter,
get_rate_limiter,
get_response_cache,
make_cache_key,
)
from minenasai.core.config import Settings, get_settings, load_config, reset_settings
from minenasai.core.logging import (
AuditLogger,
@@ -10,14 +17,39 @@ from minenasai.core.logging import (
get_logger,
setup_logging,
)
from minenasai.core.monitoring import (
ComponentHealth,
HealthChecker,
HealthStatus,
SystemMetrics,
get_health_checker,
get_metrics,
setup_monitoring,
)
__all__ = [
# 配置
"Settings",
"get_settings",
"load_config",
"reset_settings",
# 日志
"setup_logging",
"get_logger",
"AuditLogger",
"get_audit_logger",
# 监控
"setup_monitoring",
"get_metrics",
"get_health_checker",
"SystemMetrics",
"HealthChecker",
"HealthStatus",
"ComponentHealth",
# 缓存
"MemoryCache",
"RateLimiter",
"get_response_cache",
"get_rate_limiter",
"make_cache_key",
]