{% extends "layouts/base.html" %} {% load static %} {% block title %} {% if object %} Edit Notification Rule - {{ object.name }} {% else %} Create Notification Rule {% endif %} {% endblock %} {% block content %}

{% if object %} Edit Notification Rule {% else %} Create Notification Rule {% endif %}

{% if object %} Update the notification rule "{{ object.name }}" {% else %} Create a new automatic notification rule {% endif %}

Back to Rules
Rule Information
{% csrf_token %}
Basic Information
{{ form.name }} {% if form.name.errors %}
{{ form.name.errors.0 }}
{% endif %} {{ form.name.help_text }}
{{ form.event_type }} {% if form.event_type.errors %}
{{ form.event_type.errors.0 }}
{% endif %} {{ form.event_type.help_text }}
Notification Configuration
{{ form.channel }} {% if form.channel.errors %}
{{ form.channel.errors.0 }}
{% endif %} {{ form.channel.help_text }}
{{ form.template }} {% if form.template.errors %}
{{ form.template.errors.0 }}
{% endif %} {{ form.template.help_text }}
Rule Behavior
{{ form.priority }} {% if form.priority.errors %}
{{ form.priority.errors.0 }}
{% endif %} {{ form.priority.help_text }}
{{ form.throttle_minutes }} {% if form.throttle_minutes.errors %}
{{ form.throttle_minutes.errors.0 }}
{% endif %} {{ form.throttle_minutes.help_text }}
{{ form.is_active }}
{% if form.is_active.errors %}
{{ form.is_active.errors.0 }}
{% endif %} {{ form.is_active.help_text }}
{% if form.conditions %}
Advanced Conditions
{{ form.conditions }} {% if form.conditions.errors %}
{{ form.conditions.errors.0 }}
{% endif %} {{ form.conditions.help_text }}
{% endif %}

{% if object %} {% endif %}
Cancel
Help & Tips
Event Types
  • Jingle Detected: When a jingle is identified in the stream
  • Ad Break Started: When an advertisement break begins
  • Ad Break Ended: When an advertisement break ends
  • Stream Started: When a stream begins broadcasting
  • Stream Stopped: When a stream stops broadcasting
  • Stream Error: When a stream encounters an error
  • High Error Rate: When error rate exceeds threshold
  • System Startup: When the system starts up
  • System Shutdown: When the system shuts down
Priority Levels
  • 0: Normal priority (default)
  • 1-5: Medium priority
  • 6-10: High priority
  • 10+: Critical priority
Throttling

Throttling prevents spam by limiting how often the same rule can trigger. Set to 0 for no throttling, or specify minutes between notifications.

Example Conditions
Jingle Detection:
{"confidence": 0.8}
Stream Error:
{"error_type": "connection"}
High Error Rate:
{"threshold": 10}
{% if object %} {% endif %} {% endblock %}