{% if stats.error is defined %}
Error loading statistics:

{{ stats.error }}

{% else %}

Total Archives

{{ stats.summary.total_archives }}

Space Saved

{{ stats.summary.space_saved_gb }} GB

Compression

{{ stats.summary.overall_compression_ratio }}%

Deduplication

{{ stats.summary.overall_deduplication_ratio }}%

{% if stats.execution_time_stats and stats.execution_time_stats|length > 0 %}

Avg Task Time

{% set avg_time = (stats.execution_time_stats | sum(attribute='average_duration_minutes') / stats.execution_time_stats|length) | round(1) %} {{ avg_time }} min

{% endif %}

Repository Size Over Time

Compression & Deduplication Ratios

File Types by Count Over Time

File Types by Size Over Time

{% if stats.execution_time_stats and stats.execution_time_stats|length > 0 %}

Average Job Execution Times

{% endif %} {% if stats.success_failure_stats and stats.success_failure_stats|length > 0 %}

Task Success & Failure Rates

{% endif %} {% if stats.timeline_success_failure and stats.timeline_success_failure.labels|length > 0 %}

Backup Success/Failure Timeline (Last 30 Days)

{% endif %}

Detailed Statistics

Total Original Size: {{ stats.summary.total_original_size_gb }} GB
Total Compressed Size: {{ stats.summary.total_compressed_size_gb }} GB
Total Deduplicated Size: {{ stats.summary.total_deduplicated_size_gb }} GB
Average Archive Size: {{ stats.summary.average_archive_size_gb }} GB
{% if stats.execution_time_stats and stats.execution_time_stats|length > 0 %}

Job Execution Statistics

{% for stat in stats.execution_time_stats %}
{{ stat.task_type.replace('_', ' ').title() }}
Avg Duration: {{ stat.average_duration_minutes }} min
Total Runs: {{ stat.total_executions }}
Range: {{ stat.min_duration_minutes }}-{{ stat.max_duration_minutes }} min
{% endfor %}
{% endif %} {% if stats.success_failure_stats and stats.success_failure_stats|length > 0 %}

Task Success/Failure Statistics

{% for stat in stats.success_failure_stats %}
{{ stat.task_type.replace('_', ' ').title() }}
Success Rate: {{ stat.success_rate }}%
Successful: {{ stat.successful_count }}
Failed: {{ stat.failed_count }}
{% endfor %}
{% endif %}
{% endif %}