{% extends "layouts/base.html" %} {% load static %} {% block title %}Notification Rules{% endblock %} {% block content %}

Notification Rules

Manage automatic notification triggers and conditions

Create Rule
Total Rules
{{ rules|length }}
Active Rules
{% for rule in rules %}{% if rule.is_active %}{% if forloop.first %}1{% else %}{{ forloop.counter }}{% endif %}{% endif %}{% empty %}0{% endfor %}
Event Types
{% regroup rules by event_type as event_groups %} {{ event_groups|length }}
High Priority
{% for rule in rules %}{% if rule.priority > 0 %}{% if forloop.first %}1{% else %}{{ forloop.counter }}{% endif %}{% endif %}{% empty %}0{% endfor %}
Search & Filter
Notification Rules
{% if rules %}
{% for rule in rules %} {% endfor %}
Name Event Type Channel Template Priority Status Last Triggered Actions
{{ rule.name }} {% if rule.throttle_minutes > 0 %}
Throttle: {{ rule.throttle_minutes }}min {% endif %}
{{ rule.get_event_type_display }} {{ rule.channel.name }}
{{ rule.channel.get_channel_type_display }}
{{ rule.template.name }}
{{ rule.template.get_template_type_display }}
{% if rule.priority > 0 %} {{ rule.priority }} {% else %} {{ rule.priority }} {% endif %} {% if rule.is_active %} Active {% else %} Inactive {% endif %} {% if rule.last_triggered %} {{ rule.last_triggered|timesince }} ago {% else %} Never {% endif %}
{% if is_paginated %} {% endif %} {% else %}
No Notification Rules Found

{% if request.GET.search or request.GET.event_type or request.GET.status %} No rules match your current search criteria. Try adjusting your filters. {% else %} Get started by creating your first notification rule to automate alerts based on system events. {% endif %}

Create First Rule
{% endif %}
{% endblock %}