{% 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 and avg_response != 'N/A' %} {{ "%.0f"|format(avg_response|float) }}ms {% else %} N/A {% endif %} {% set success_rate = item.get('successRate', 0) or 0 %} {{ "%.1f"|format(success_rate) }}% {% set last_exec = item.get('lastExecution') %} {% if last_exec and last_exec != 'Never' %} {{ last_exec }} {% else %} Never {% endif %}
No data available
{% set base_url = root_path + '/admin/metrics/partial' %} {% set hx_target = '#top-' + entity_type + '-content-visible' %} {% set hx_indicator = '#top-' + entity_type + '-loading-visible' %} {% set query_params = {'entity_type': entity_type} %} {% include 'pagination_controls.html' %}