mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 21:37:49 -05:00
api stats
This commit is contained in:
@@ -82,9 +82,9 @@
|
||||
{% else %}
|
||||
{% trans 'Everything is fine!' %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
<h4 class="mt-3">{% trans 'Allowed Hosts' %} <span
|
||||
class="badge badge-{% if '*' in allowed_hosts %}warning{% else %}success{% endif %}">{% if '*' in allowed_hosts %}
|
||||
class="badge badge-{% if '*' in allowed_hosts %}warning{% else %}success{% endif %}">{% if '*' in allowed_hosts %}
|
||||
{% trans 'Warning' %}{% else %}{% trans 'Ok' %}{% endif %}</span></h4>
|
||||
{% if debug %}
|
||||
{% blocktrans %}
|
||||
@@ -176,6 +176,33 @@
|
||||
{#{% endfor %}#}
|
||||
{# </textarea>#}
|
||||
|
||||
<h4 class="mt-3">API Stats</h4>
|
||||
<h6 >User Stats</h6>
|
||||
<table class="table table-bordered table-striped">
|
||||
{% for r in api_user_stats %}
|
||||
<tr>
|
||||
{% for c in r %}
|
||||
<td>
|
||||
{{ c }}
|
||||
</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
<h6 >Endpoint Stats</h6>
|
||||
<table class="table table-bordered table-striped">
|
||||
{% for r in api_stats %}
|
||||
<tr>
|
||||
{% for c in r %}
|
||||
<td>
|
||||
{{ c }}
|
||||
</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
<h4 class="mt-3">Debug</h4>
|
||||
<textarea class="form-control" rows="20">
|
||||
Gunicorn Media: {{ gunicorn_media }}
|
||||
|
||||
Reference in New Issue
Block a user