{% extends "dashboard/base.html" %} {% block title %}{{ t.health }}{% endblock %} {% block page_title %}{{ t.health }}{% endblock %} {% block content %}
{% if lang == 'fa' %}وضعیت کلی{% else %}Overall Status{% endif %}
{% if async_load %}{% if lang == 'fa' %}در حال بررسی...{% else %}Checking...{% endif %}
{% elif system_status == 'healthy' %}{{ t.healthy }}
{% elif system_status == 'degraded' %}{% if lang == 'fa' %}کاهش یافته{% else %}Degraded{% endif %}
{% else %}{{ t.error }}
{% endif %}{{ t.system_uptime }}
{{ uptime.formatted }}
{% if lang == 'fa' %}کل درخواستها{% else %}Total Requests{% endif %}
{{ metrics.total_requests|default(0) }}
{{ metrics.requests_per_minute|default(0)|round(1) }} req/min
{% if lang == 'fa' %}نرخ خطا{% else %}Error Rate{% endif %}
{{ metrics.error_rate_percent|default(0)|round(2) }}%
{{ metrics.failed_requests|default(0) }} {% if lang == 'fa' %}خطا{% else %}failed{% endif %}
{{ metrics.average_response_time_ms|default(0)|round(2) }}
{% if lang == 'fa' %}میانگین (ms){% else %}Avg (ms){% endif %}
{{ metrics.min_response_time_ms|default(0)|round(2) }}
{% if lang == 'fa' %}حداقل (ms){% else %}Min (ms){% endif %}
{{ metrics.max_response_time_ms|default(0)|round(2) }}
{% if lang == 'fa' %}حداکثر (ms){% else %}Max (ms){% endif %}
{% if lang == 'fa' %}موفق{% else %}Successful{% endif %}
{{ metrics.successful_requests|default(0) }}
{% if lang == 'fa' %}ناموفق{% else %}Failed{% endif %}
{{ metrics.failed_requests|default(0) }}
{{ success_rate|round(1) }}% {% if lang == 'fa' %}نرخ موفقیت{% else %}success rate{% endif %}
| {% if lang == 'fa' %}پروژه{% else %}Project{% endif %} | {% if lang == 'fa' %}وضعیت{% else %}Status{% endif %} | {% if lang == 'fa' %}زمان پاسخ{% else %}Response Time{% endif %} | {% if lang == 'fa' %}نرخ خطا{% else %}Error Rate{% endif %} | {% if lang == 'fa' %}آخرین بررسی{% else %}Last Check{% endif %} |
|---|---|---|---|---|
|
{% if lang == 'fa' %}در حال بررسی سلامت پروژهها...{% else %}Checking projects health...{% endif %} |
||||
| {{ project_id }} | {% if project.healthy or project.status == 'healthy' %} {{ t.healthy }} {% elif project.status == 'warning' %} {% if lang == 'fa' %}هشدار{% else %}Warning{% endif %} {% elif project.status == 'unhealthy' %} {% if lang == 'fa' %}ناسالم{% else %}Unhealthy{% endif %} {% elif project.status == 'unknown' %} {% if lang == 'fa' %}نامشخص{% else %}Unknown{% endif %} {% else %} {% if lang == 'fa' %}نامشخص{% else %}Unknown{% endif %} {% endif %} | {{ project.response_time_ms|round(2) }} ms | {{ project.error_rate_percent|round(2) }}% | {{ project.last_check[:19] if project.last_check else '-' }} |
|
{% if lang == 'fa' %}هیچ پروژهای برای بررسی یافت نشد{% else %}No projects found for health check{% endif %} |
||||
{% if lang == 'fa' %}زمان شروع{% else %}Start Time{% endif %}
{{ uptime.start_time[:19] if uptime.start_time else '-' }}
{% if lang == 'fa' %}آپتایم (روز){% else %}Uptime (Days){% endif %}
{{ uptime.days|default(0)|round(2) }}
{% if lang == 'fa' %}آپتایم (ساعت){% else %}Uptime (Hours){% endif %}
{{ uptime.hours|default(0)|round(2) }}
{% if lang == 'fa' %}زمان فعلی{% else %}Current Time{% endif %}
{{ uptime.current_time[:19] if uptime.current_time else '-' }}
{% if lang == 'fa' %}نمایش دادههای ذخیره شده{% else %}Showing cached data{% endif %}
{% else %}{% if lang == 'fa' %}بررسی زنده انجام شد{% else %}Live check completed{% endif %}
{% endif %}