Initial import
This commit is contained in:
commit
09f0b0672d
64 changed files with 3735 additions and 0 deletions
31
app/portal/templates/alarms.html.j2
Normal file
31
app/portal/templates/alarms.html.j2
Normal file
|
@ -0,0 +1,31 @@
|
|||
{% extends "base.html.j2" %}
|
||||
{% from 'bootstrap5/form.html' import render_form %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="h2 mt-3">Alarms</h1>
|
||||
<h2 class="h3">Proxies</h2>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Resource</th>
|
||||
<th scope="col">Type</th>
|
||||
<th scope="col">State</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for alarm in alarms %}
|
||||
<tr class="bg-{% if alarm.alarm_state.name == "OK" %}success{% elif alarm.alarm_state.name == "UNKNOWN" %}dark{% else %}danger{% endif %} text-light">
|
||||
{% if alarm.target == "proxy" %}
|
||||
<td>Proxy: {{ alarm.proxy.url }} ({{ alarm.proxy.origin.domain_name }})</td>
|
||||
{% elif alarm.target == "service/cloudfront" %}
|
||||
<td>AWS CloudFront</td>
|
||||
{% endif %}
|
||||
<td>{{ alarm.alarm_type }}</td>
|
||||
<td>{{ alarm.alarm_state.name }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue