html_reports
¶
HTML Analytics Report Generation.
This module handles HTML report generation for analytics data, including performance metrics, function call summaries, and dry-run reports.
generate_empty_html_template
¶
Generate and save an empty HTML template when no data is available.
Source code in src/metrics/html_reports.py
group_events_by_duration_and_success
¶
group_events_by_duration_and_success(
events,
duration_thresholds,
group_successful_short_calls,
error_logger,
)
Group events by duration and success status.
Source code in src/metrics/html_reports.py
generate_grouped_success_table
¶
Generate HTML table for grouped successful short calls.
Source code in src/metrics/html_reports.py
get_duration_category
¶
Determine the duration category based on thresholds.
Source code in src/metrics/html_reports.py
determine_event_row_class
¶
Determine the CSS class for an event table row based on success and duration.
Source code in src/metrics/html_reports.py
format_event_table_row
¶
Format a single event as an HTML table row.
Source code in src/metrics/html_reports.py
generate_summary_table_html
¶
Generate HTML table for function call summary.
Source code in src/metrics/html_reports.py
save_html_report
¶
save_html_report(
events,
call_counts,
success_counts,
decorator_overhead,
config,
console_logger=None,
error_logger=None,
group_successful_short_calls=False,
force_mode=False,
)
Generate an HTML report from the provided analytics data.