{% extends "redis_metrics/base.html" %} {% load url from future %} {% comment %} Context for this Template: * ``slugs`` -- a set of slugs for the metrics that we want to aggregate. * ``metrics`` -- the metric data. It's a list of two-tuples that looks something like this:: [('foo', {'day': '42', 'month': '90', 'week': '50', 'year': '9991'}), ('bar', {'day': '2', 'month': '10', 'week': '5', 'year': '90'})] {% endcomment %} {% block extrahead %} {% endblock %} {% block content %}

Aggregate Metrics

Metrics in this graph: {{ slugs|join:", " }}. You may also view aggregate history:

{% for slug, metric_dict in metrics %} {% for period, value in metric_dict.items %} {% endfor %} {% endfor %}
Metrics Data
MetricTime PeriodValue
{{ slug }} {{ period|capfirst }} {{ value|default_if_none:"-" }}
{% endblock %}