{% extends "base.html" %} {% macro tip(label, text) %}{{ text }}{% endmacro %} {% block title %}{{ rule.name or 'New rule' }} · Logs · NEXXVU{% endblock %} {% block scripts %}{% endblock %} {% block content %}
Settings · Logs · Rules
IF messages match, N times within M minutes, THEN NEXXVU acts. Preview shows what the rule would have done with the logs already stored; nothing changes until you save it, and it acts only when it is switched on.
{{ preview.matched }} matching messages{% if preview.truncated %} (of the newest {{ preview.scanned }}; a shorter period gives the whole picture){% endif %} · the rule would have fired {{ preview.fire_count }} time{{ 's' if preview.fire_count != 1 }}{% if preview.fire_count %}, for {{ preview['keys'] }} {{ 'address' if rule.group_by == 'address' else ('device' if rule.group_by == 'device' else 'group') }}{{ 'es' if rule.group_by == 'address' and preview['keys'] != 1 else ('s' if rule.group_by != 'address' and preview['keys'] != 1 else '') }}{% endif %}.
{% set by_address = rule.group_by == 'address' %}{% set back = ('/settings/logs/rules/' ~ rule_id) if rule_id != 'new' else '/settings/logs?tab=rules' %} {% if preview.fires and by_address %}{% with bar_id='bulk-preview' %}{% include "_address_bulk_bar.html" %}{% endwith %}{% endif %} {% if preview.fires %}| {% endif %} | When (UTC) | For | Messages in the window | Message | {% if by_address %}Actions | {% endif %}
|---|---|---|---|---|---|
| {% endif %} | {{ f.at|replace('T', ' ')|replace('Z', '') }} | {% if rule.group_by == 'address' %}{{ f.key }}{{ ai.inline(AIL.get(f.key), f.key) }}{% else %}{{ f.device }}{% endif %} | {{ f.count }} | {% if by_address %}{% with address=f.key %}{% include "_address_row_actions.html" %}{% endwith %} | {% endif %}
Matching messages, but never {{ rule.threshold }} within {{ rule.window_minutes }} minutes. The latest:
No stored message matches. Widen the conditions or the period.
{% endif %}