{% 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 %} {% if ci_enabled %}

Projeto de CI

Vincule o repositório para acompanhar, na mesma tela, os registros do SDK e as execuções de CI.

{% if ci_projects %}
    {% for p in ci_projects %}
  • {{ p.path }} {% if p.last_pipeline_status == 'success' %} último: success {% elif p.last_pipeline_status %} último: {{ p.last_pipeline_status }} {% endif %} Abrir
    {% csrf_token %}
  • {% endfor %}
{% else %} {% if ci_candidatos %}
Sugestões por semelhança de nome
{% for c in ci_candidatos %}
{% csrf_token %}
{% endfor %}
{% endif %}
{% csrf_token %}
{# input+datalist: pesquisável ao digitar, sem depender de lib externa #} {% for c in ci_candidatos %}{% endfor %} {% for c in ci_todos %}{% endfor %}

Os repositórios com nome parecido aparecem primeiro na lista. Confirme o repositório antes de vincular.

{% endif %}
{% endif %}

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

{% if ci_enabled and ci_projects %}
{% endif %}
{% 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 ci_enabled and ci_projects %} {% include "botapp/_ci_log_modal.html" %} {% endif %}
{% if page_obj.has_previous %} « {% endif %} Página {{ page_obj.number }} de {{ page_obj.paginator.num_pages }} {% if page_obj.has_next %} » {% endif %}
{% if ci_enabled and ci_projects %} {% endif %} {% endblock %}