{% for item in data %} {% endfor %} {% if not data %} {% endif %}
Rank Name Executions Avg Response Time Success Rate Last Used
{% set rank = (pagination.page - 1) * pagination.per_page + loop.index %} {% if rank == 1 %} 🥇 {{ rank }} {% elif rank == 2 %} 🥈 {{ rank }} {% elif rank == 3 %} 🥉 {{ rank }} {% else %} {{ rank }} {% endif %} {{ item.get('name', 'N/A') }} {{ "{:,}".format(item.get('executionCount', 0)) }} {% set avg_response = item.get('avgResponseTime') %} {% if avg_response is not none %} {{ "%.0f"|format((avg_response|float) * 1000) }}ms {% else %} N/A {% endif %} {% set success_rate = item.get('successRate') %} {% if success_rate is not none %} {{ "%.1f"|format(success_rate) }}% {% else %} N/A {% endif %} {% set last_exec = item.get('lastExecution') %} {% if last_exec %} {{ last_exec[:16] | replace('T', ' ') }} {% else %} Never {% endif %}
No data available
{% set base_url = root_path + '/admin/metrics/partial' %} {% set hx_target = '#top-' + entity_type + '-content-visible' %} {% set hx_swap = 'outerHTML' %} {% set hx_indicator = '#top-' + entity_type + '-loading-visible' %} {% set table_name = 'metrics_' + entity_type %} {% set query_params = {'entity_type': entity_type} %} {% include 'pagination_controls.html' %}