{% extends "layouts/base.html" %} {% load static %} {% block title %}Channel Health - {{ channel.display_name|default:channel.name }}{% endblock %} {% block extra_css %} {% endblock extra_css %} {% block breadcrumb %} {% endblock breadcrumb %} {% block content %}

{{ channel.display_name|default:channel.name }} Health Status

Real-time monitoring and health metrics for your channel

{{ overall_health.score|default:"--" }}%

Overall Health

{{ connection_health.uptime|default:"--" }}%
Connection Uptime
{% if connection_health.trend == 'up' %} +{{ connection_health.change }}% {% elif connection_health.trend == 'down' %} {{ connection_health.change }}% {% else %} Stable {% endif %}
{{ performance_health.cpu_usage|default:"--" }}%
CPU Usage
{% if performance_health.cpu_trend == 'up' %} +{{ performance_health.cpu_change }}% {% elif performance_health.cpu_trend == 'down' %} {{ performance_health.cpu_change }}% {% else %} Stable {% endif %}
{{ performance_health.memory_usage|default:"--" }}%
Memory Usage
{% if performance_health.memory_trend == 'up' %} +{{ performance_health.memory_change }}% {% elif performance_health.memory_trend == 'down' %} {{ performance_health.memory_change }}% {% else %} Stable {% endif %}
{{ error_count|default:"0" }}
Errors (24h)
{% if error_trend == 'up' %} +{{ error_change }} {% elif error_trend == 'down' %} {{ error_change }} {% else %} No change {% endif %}
Performance Metrics
Recent Alerts
{% if recent_alerts %} {% for alert in recent_alerts %}
{{ alert.title }}

{{ alert.message }}

{{ alert.created_at|timesince }} ago
{{ alert.get_severity_display }}
{% endfor %} {% else %}
No recent alerts

Your channel is running smoothly!

{% endif %}
System Information
{% if channel.is_online %} Online {% else %} Offline {% endif %}
{{ channel.get_type_display|default:"-" }}
{{ last_health_check|default:"-" }}
{{ uptime_duration|default:"-" }}
{{ channel.stream_url|default:"-" }}
Health Configuration
{{ health_config.check_interval|default:"5" }} min
{{ health_config.timeout|default:"30" }}s
{{ health_config.retry_count|default:"3" }}
{{ health_config.alert_threshold|default:"80" }}%
Health Dashboard
{% endblock content %} {% block extra_js %} {% endblock extra_js %}