Total Invocations

{{ invocations | length }}

Success Rate

{% set successful_invocations = invocations | selectattr('status', 'equalto', 'SUCCESS') | list %}

{% if invocations %} {{ "%.2f"|format((successful_invocations|length / invocations|length) * 100) }}% {% else %} N/A {% endif %}

Avg. Execution Time

{% set total_execution_time = invocations | sum(attribute='execution_time') %}

{% if invocations %} {{ "%.2f"|format(total_execution_time / invocations|length) }}ms {% else %} N/A {% endif %}

Invocation History

{% if invocations %} {% set max_execution_time = [1] %} {% for inv in invocations %} {% if inv.execution_time > max_execution_time[0] %}{% set _ = max_execution_time.pop() %}{{ max_execution_time.append(inv.execution_time) }}{% endif %} {% endfor %} {% set path = namespace(d='M') %} {% for inv in invocations | reverse %} {% set x = 40 + (loop.index0 * (340 / (invocations|length - 1 if invocations|length > 1 else 1))) %} {% set y = 180 - ((inv.execution_time / max_execution_time[0]) * 160) %} {% if loop.first %} {% set path.d = path.d ~ x ~ "," ~ y %} {% else %} {% set path.d = path.d ~ " L" ~ x ~ "," ~ y %} {% endif %} {% endfor %} {% for inv in invocations | reverse %} {% set x = 40 + (loop.index0 * (340 / (invocations|length - 1 if invocations|length > 1 else 1))) %} {% set y = 180 - ((inv.execution_time / max_execution_time[0]) * 160) %} {{ inv.invocation_time.strftime('%Y-%m-%d %H:%M:%S') }}: {{ "%.2f"|format(inv.execution_time) }}ms {% endfor %} {% endif %}