{% load ccp %}
{% if monitor and monitor.is_active %} {{ monitor.message|default:"Starting…" }} {% if monitor.result.last_fetch %}last fetch {{ monitor.result.last_fetch|slice:"11:" }} · every {{ monitor.result.interval }} s{% endif %} {% else %} {% if monitor.status == 'failed' %}Failed {{ monitor.error }} {% elif monitor.status == 'cancelled' %}Stopped.{% endif %} {% if monitor.result.errors %}{% endif %} {% endif %} {% if monitor.result.error %}
Last fetch failed: {{ monitor.result.error }}
{% endif %}
{% with view=monitor.result.view %} {% if view %}
{% for m in view.metrics %}
{{ m.label }}
{{ m.value|default:"N/A" }}
{% if m.delta %}
{{ m.delta }} vs expected
{% endif %}
{% endfor %}
{% plotly view.figures.head %} {% plotly view.figures.eff %} {% plotly view.figures.power %} {% plotly view.figures.disch_p %}
Recent points (last 5)
{% for c in view.table.columns %}{% endfor %} {% for r in view.table.rows %} {% for v in r.values %}{% endfor %} {% endfor %}
Time{{ c }}
{{ r.time|slice:":19" }}{% if v is True %}✓{% elif v is False %}✗{% else %}{{ v }}{% endif %}
{% elif not monitor or not monitor.is_active %} {% if not monitor %}
Run a performance evaluation, then Start monitoring.
{% endif %} {% endif %} {% endwith %}