TCPDashboard/dashboard/layouts/system_health.py
Vasily.onl 010adb30f0 Implement modular architecture for Crypto Trading Bot Dashboard
- Introduced a new modular structure for the dashboard, enhancing maintainability and scalability.
- Created main application entry point in `app_new.py`, integrating all components and callbacks.
- Developed layout modules for market data, bot management, performance analytics, and system health in the `layouts` directory.
- Implemented callback modules for navigation, charts, indicators, and system health in the `callbacks` directory.
- Established reusable UI components in the `components` directory, including chart controls and indicator modals.
- Enhanced documentation to reflect the new modular structure and provide clear usage guidelines.
- Ensured all components are under 300-400 lines for better readability and maintainability.
2025-06-04 13:30:16 +08:00

30 lines
807 B
Python

"""
System health monitoring layout for the dashboard.
"""
from dash import html
def get_system_health_layout():
"""Create the system health monitoring layout."""
return html.Div([
html.H2("⚙️ System Health", style={'color': '#2c3e50'}),
# Database status
html.Div([
html.H3("Database Status"),
html.Div(id='database-status')
], style={'margin': '20px 0'}),
# Data collection status
html.Div([
html.H3("Data Collection Status"),
html.Div(id='collection-status')
], style={'margin': '20px 0'}),
# Redis status
html.Div([
html.H3("Redis Status"),
html.Div(id='redis-status')
], style={'margin': '20px 0'})
])