{# A resource's metric anomalies (#5740), for its own page: `anomalies` are anomalies.views() rows, to review first; `back` is this page's path, so a review returns here. Shown only when there is one. #} {% from "_anomaly.html" import anomaly_row with context %} {% if anomalies %} {% set going = anomalies | selectattr("ongoing") | list %}

{% if going %}Out of its normal now{% else %}Metric anomalies, last 30 days{% endif %}

{% for v in anomalies %}{{ anomaly_row(v, back=back, show_resource=v.anomaly.resource_name != base_resource) }}{% endfor %}
All anomalies
{% endif %}