{% extends "dashboard/main.html" %} {% block content %}
Endpoint | Number of hits | Average execution time (ms) | Last accessed | Details | |||||
---|---|---|---|---|---|---|---|---|---|
Today | Last 7 days | Overall | Today | Last 7 days | Overall | ||||
{% for hits in hits_today %} {{ hits.count if hits.endpoint == record.endpoint }} {% endfor %} | {% for hits in hits_last_days %} {{ hits.count if hits.endpoint == record.endpoint }} {% endfor %} | {{ record.count }} | {% for average in average_today %} {{ ((average.average*10)|round)/10 if average.endpoint == record.endpoint }} {% endfor %} | {% for average in average_last_days %} {{ ((average.average*10)|round)/10 if average.endpoint == record.endpoint }} {% endfor %} | {{ ((record.average*10)|round)/10 }} | {% for a in access %} {% if record.endpoint == a.endpoint %}{{ "{:%Y-%m-%d %H:%M:%S }".format(a.last_accessed) if a.last_accessed }} | {% endif %} {% endfor %}Details |