{% 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:"-" }}
Endpoints
{% for endpoint_type, endpoints in incident.metadata.endpoints.items %}
{% if endpoints %}
{% for endpoint in endpoints %}
{% with forloop.counter as endpoint_counter %}
Endpoint Name
Alarm ID
Status
Init Time
Clear Time
Properties
{{ endpoint.name }}
{% for event in endpoint.events %}
{% if not forloop.first %}{% endif %}
{% endif %}
{% endfor %}
{% endwith %}
{% endfor %}
{{ event.properties.id }}
{{ event.init_time }}
{{ event.clear_time|default:"-" }}
{% if not forloop.last %}
Cannot show additional information (mismatched metadata version)
{% endif %} {% endblock incident_detail %} {% endblock main %}