TCPDashboard/dashboard/layouts/system_health.py

30 lines
807 B
Python
Raw Normal View History

"""
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'})
])