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

{{ bot.name }}

{% if bot.is_active %} Ativo {% else %} Inativo {% endif %} {% if bot.last_status %} Último: {{ bot.last_status|title }} {% endif %}
{% if bot.description %}

{{ bot.description }}

{% endif %}
{% if bot.department %}{{ bot.department }}{% endif %} {% if bot.version %}v{{ bot.version }}{% endif %} Criado em {{ bot.created_at|date:"d/m/Y H:i" }} {% if bot.last_execution_at %}Última execução {{ bot.last_execution_at|date:"d/m/Y H:i" }}{% endif %}
{% if user.is_superuser %} {% endif %}
{% if user.is_staff or user.is_superuser %}

Threshold de silêncio

Dispara alerta silent_bot quando esse tempo passa sem nova execução.

Atual: {% if bot.silence_threshold_minutes %} {{ bot.silence_threshold_minutes }}min {% elif bot.silence_threshold_hours %} {{ bot.silence_threshold_hours }}h {% else %} default global ({{ default_hours }}h) {% endif %}

Use minutos para bots de alta frequência (ex.: a cada 10min). Para aplicar em lote, veja Thresholds de silêncio.

{% endif %}

Logs de Execução

{% for log in logs %} {% empty %} {% endfor %}
TarefaStatusInícioFimDuração ErroSistemaUsuárioAções
{{ log.task|default:"—" }} {% if log.status == 'completed' %}{{ log.get_status_display }} {% elif log.status == 'failed' %}{{ log.get_status_display }} {% elif log.status == 'started' %}{{ log.get_status_display }} {% else %}{{ log.status|default:"—" }}{% endif %} {{ log.start_time|date:"d/m/Y H:i:s"|default:"—" }} {{ log.end_time|date:"d/m/Y H:i:s"|default:"—" }} {{ log.duration|default:"—" }} {% if log.error_message %}{{ log.error_message|truncatechars:30 }}{% else %}{% endif %} {{ log.os_platform|truncatechars:20|default:"—" }} {{ log.user_login|default:"—" }}

Nenhum log encontrado.

{% if page_obj.has_previous %} « {% endif %} Página {{ page_obj.number }} de {{ page_obj.paginator.num_pages }} {% if page_obj.has_next %} » {% endif %}
{% endblock %}