{% extends "botapp/base.html" %} {% load static %} {% block title %}Alertas | RPA Monitor{% endblock %} {% block content %}

Alertas

{{ total }} alerta(s) no filtro atual.

{% if user.is_staff or user.is_superuser %} {% endif %}
{% if user.is_staff or user.is_superuser %} {% endif %}
Limpar
{% if alerts %}
{% for alert in alerts %}
{% if alert.severity == 'critical' %} {% elif alert.severity == 'high' %} {% elif alert.severity == 'medium' %} {% else %}{% endif %} {{ alert.get_severity_display }} {{ alert.get_type_display }}

{{ alert.message }}

{% if alert.bot_id %} {{ alert.bot.name }} {% endif %} {{ alert.created_at|date:"d/m/Y H:i" }} {% if alert.acked_at %} Ack por {{ alert.acked_by.username|default:"—" }} em {{ alert.acked_at|date:"d/m H:i" }} {% endif %} {% if alert.resolved_at %} Resolvido por {{ alert.resolved_by.username|default:"—" }} em {{ alert.resolved_at|date:"d/m H:i" }} {% endif %}
{% if not alert.acked_at %} {% endif %} {% if not alert.resolved_at %} {% endif %} {% if alert.bot_id %} Ver bot {% endif %}
{% endfor %}
{% if page_obj.has_previous %} « {% endif %} Página {{ page_obj.number }} de {{ page_obj.paginator.num_pages }} {% if page_obj.has_next %} » {% endif %}
{% else %}

Tudo tranquilo por aqui.

Nenhum alerta {% if status == 'active' %}ativo{% elif status == 'resolved' %}resolvido{% endif %}.

{% endif %}
{% endblock %}