{% extends "base.html" %} {% block title %}{{ _('Metrics Server Status') }} - {{ _('Admin') }}{% endblock %} {% block content %}

# {{ _('Metrics Server Status') }}

{{ _('Test Connection') }} {{ _('Restart Client') }} {{ _('Back to Dashboard') }}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %}

##### {{ _('Client Information') }}

{{ _('App Identifier:') }} | {{ status.app_identifier }}
{{ _('App Version:') }} | {{ status.app_version }}
{{ _('Instance ID:') }} | `{{ status.instance_id or _('Not registered') }}`
{{ _('Registration Status:') }} | {% if status.is_registered %} {{ _('Registered') }} {% else %} {{ _('Not Registered') }} {% endif %}

##### {{ _('Connection Status') }}

{{ _('Client Running:') }} | {% if status.is_running %} {{ _('Running') }} {% else %} {{ _('Stopped') }} {% endif %}
{{ _('Server Health:') }} | {% if status.server_healthy %} {{ _('Healthy') }} {% else %} {{ _('Not Responding') }} {% endif %}
{{ _('Offline Data:') }} | {% if status.offline_data_count > 0 %} {{ status.offline_data_count }} {{ _('pending') }} {% else %} {{ _('None') }} {% endif %}
{{ _('Server URL:') }} | `{{ status.server_url }}`
{{ _('Heartbeat Interval:') }} | {{ status.heartbeat_interval }} {{ _('seconds') }}
{{ _('Analytics Enabled:') }} | {% if status.analytics_enabled %} {{ _('Yes') }} {% else %} {{ _('No') }} {% endif %}

##### {{ _('Configuration') }}

###### {{ _('About This Implementation') }}

{{ _('This TimeTracker application communicates with a metrics server for monitoring and analytics purposes only.') }} {{ _('No license is required') }} {{ _('to use the application. The metrics server is used to:') }}

- {{ _('Track application usage and features') }}
- {{ _('Monitor system health and performance') }}
- {{ _('Collect analytics data for improvement') }}
- {{ _('Provide support and troubleshooting information') }}

###### {{ _('Server Configuration') }}

- {{ _('Server URL:') }} `{{ status.server_url }}`
- {{ _('Heartbeat Interval:') }} {{ status.heartbeat_interval }} {{ _('seconds') }}

###### {{ _('Features') }}

- {{ _('Automatic instance registration') }}
- {{ _('Periodic heartbeats') }}
- {{ _('Usage data collection') }}
- {{ _('Offline data storage') }}
- {{ _('Graceful error handling') }}

###### {{ _('Privacy & Analytics Settings') }}

{{ _('Analytics Setting:') }} {% if settings and settings.allow_analytics %} {{ _('Enabled') }} {{ _('System information is being shared with the metrics server') }} {% else %} {{ _('Disabled') }} {{ _('System information sharing is disabled') }} {% endif %}
{{ _('This setting can be changed in') }} {{ _('System Settings') }}. {{ _('License validation continues to work regardless of this setting.') }}
{% endblock %}