{% extends "rebac_admin/base.html" %} {% block title %}{{ config.title }}{% endblock %} {% block content %}

{{ config.title }}

{% if create_allowed %} Create object {% endif %} {% if config.table_key == 'suspicious_alert' and user.is_superuser %}
{% endif %}
{% if config.table_key == 'suspicious_alert' and suspicious_activity_config %}

Suspicious activity detection: {% if suspicious_activity_config.enabled %} enabled {% else %} disabled {% endif %}

Window: {{ suspicious_activity_config.window_minutes }} min; rules: {{ 'on' if suspicious_activity_config.rules_enabled else 'off' }}; PyOD detector: {{ 'on' if suspicious_activity_config.pyod_enabled else 'off' }}; PyOD package: {{ 'installed' if pyod_available else 'missing' }}.

{% if not suspicious_activity_config.enabled %}

Configure SuspiciousActivityConfig(enabled=True) in your application to make the run button create alerts.

{% endif %} {% if suspicious_activity_config.pyod_enabled and not pyod_available %}

PyOD detector is enabled, but the package is not installed. Install the project with [anomaly] extra to enable ECOD outlier detection.

{% endif %}
{% endif %} {% if rows %}
{% for field_name, _ in rows[0].cells %} {% endfor %} {% for row in rows %} {% for field_name, value in row.cells %} {% endfor %} {% endfor %}
{{ field_name }}
{% if value.url %} {{ value.label }} {% else %} {{ value.label }} {% endif %} Open
{% else %}

No objects found.

{% endif %} {% endblock %}