cleanup: remove dead monitoring config fields
archive_check_interval, scenario_default_timeout and step_time_monitoring were only defined and loaded but never read by any runtime code (archive_auditor was removed earlier).
This commit is contained in:
parent
e435f4d874
commit
54a2f9ba1b
@ -54,21 +54,12 @@ monitoring:
|
|||||||
# Интервал liveness-проверок (секунды)
|
# Интервал liveness-проверок (секунды)
|
||||||
liveness_interval: 30
|
liveness_interval: 30
|
||||||
|
|
||||||
# Интервал проверки архива диалогов (секунды)
|
|
||||||
archive_check_interval: 600
|
|
||||||
|
|
||||||
# Включить чтение логов через POST /ses/log (ресурсоёмко)
|
# Включить чтение логов через POST /ses/log (ресурсоёмко)
|
||||||
log_enabled: false
|
log_enabled: false
|
||||||
|
|
||||||
# Каталог с YAML-файлами сценариев
|
# Каталог с YAML-файлами сценариев
|
||||||
scenarios_dir: "/opt/ses-monitor/config/scenarios"
|
scenarios_dir: "/opt/ses-monitor/config/scenarios"
|
||||||
|
|
||||||
# Таймаут выполнения сценария по умолчанию (секунды)
|
|
||||||
scenario_default_timeout: 30
|
|
||||||
|
|
||||||
# Мониторинг времени обработки шага диалога из архива
|
|
||||||
step_time_monitoring: false
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Настройки логирования
|
# Настройки логирования
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
|||||||
@ -69,11 +69,8 @@ class MonitoringConfig:
|
|||||||
"""Общие настройки мониторинга."""
|
"""Общие настройки мониторинга."""
|
||||||
|
|
||||||
liveness_interval: int = 30 # Интервал liveness-проверок, секунды
|
liveness_interval: int = 30 # Интервал liveness-проверок, секунды
|
||||||
archive_check_interval: int = 600 # Интервал проверки архива, секунды
|
|
||||||
log_enabled: bool = False # Пока отключено — POST /ses/log тяжёлый
|
log_enabled: bool = False # Пока отключено — POST /ses/log тяжёлый
|
||||||
scenarios_dir: str = "config/scenarios"
|
scenarios_dir: str = "config/scenarios"
|
||||||
scenario_default_timeout: int = 30
|
|
||||||
step_time_monitoring: bool = True # Мониторинг времени ответа из архива
|
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
@ -198,11 +195,8 @@ def _build_config(data: Dict[str, Any]) -> AppConfig:
|
|||||||
mon_data = data.get("monitoring", {})
|
mon_data = data.get("monitoring", {})
|
||||||
monitoring = MonitoringConfig(
|
monitoring = MonitoringConfig(
|
||||||
liveness_interval=mon_data.get("liveness_interval", MonitoringConfig.liveness_interval),
|
liveness_interval=mon_data.get("liveness_interval", MonitoringConfig.liveness_interval),
|
||||||
archive_check_interval=mon_data.get("archive_check_interval", MonitoringConfig.archive_check_interval),
|
|
||||||
log_enabled=mon_data.get("log_enabled", MonitoringConfig.log_enabled),
|
log_enabled=mon_data.get("log_enabled", MonitoringConfig.log_enabled),
|
||||||
scenarios_dir=mon_data.get("scenarios_dir", MonitoringConfig.scenarios_dir),
|
scenarios_dir=mon_data.get("scenarios_dir", MonitoringConfig.scenarios_dir),
|
||||||
scenario_default_timeout=mon_data.get("scenario_default_timeout", MonitoringConfig.scenario_default_timeout),
|
|
||||||
step_time_monitoring=mon_data.get("step_time_monitoring", MonitoringConfig.step_time_monitoring),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
log_data = data.get("logging", {})
|
log_data = data.get("logging", {})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user