{% extends "htmx/base.html" %} {% load incident_extras %} {% block main %}

Incident Details

Timestamp {{ incident.start_time }}
Description {% if incident.metadata %} {{ incident.metadata.description }} {% else %} {{ incident.description }} {% endif %}
Alarm Id {{ incident.source_incident_id }}
Status {% if incident.open %} {{ incident.metadata.status|default:"Active"|upperfirst }} {% else %} Closed {% endif %}
Severity {{ incident.metadata.severity }}
Flaps {{ incident.metadata.endpoint_count|default:"-" }}
{% block incident_detail %} {% if incident.metadata and incident.metadata.version == "v0a4" %}

Endpoints

{% for endpoint_type, endpoints in incident.metadata.endpoints.items %} {% if endpoints %}
{{ endpoint_type }}
{% for endpoint in endpoints %} {% with forloop.counter as endpoint_counter %} {% for event in endpoint.events %} {% if not forloop.first %}{% endif %} {% if not forloop.last %}{% endif %} {% endfor %} {% endwith %} {% endfor %}
Endpoint Name Alarm ID Status Init Time Clear Time Properties
{{ endpoint.name }}
{{ event.properties.id }}
{{ event.is_up|yesno:"Up,Down" }}
{{ event.init_time }} {{ event.clear_time|default:"-" }}
{% endif %} {% endfor %}
{% for endpoint_type, endpoints in incident.metadata.endpoints.items %} {% for endpoint in endpoints %} {% with forloop.counter as endpoint_counter %} {% for event in endpoint.events %} {% include "htmx/incidents/_incident_event_properties_modal.html" with endpoint_name=endpoint.name event=event endpoint_type=endpoint_type endpoint_counter=endpoint_counter event_counter=forloop.counter %} {% endfor %} {% endwith %} {% endfor %} {% endfor %} {% else %}

Cannot show additional information (mismatched metadata version)

{% endif %} {% endblock incident_detail %} {% endblock main %}