{% extends 'layouts/base.html' %} {% load static %} {% block title %}Notification Channels - Stream Processor{% endblock %} {% block page_title %}Notification Channels{% endblock %} {% block content %}

Notification Channels

Manage notification delivery channels and their configurations

Clear
Total Channels
{{ channels|length }}
Active
{% for channel in channels %}{% if channel.is_active %}{{ forloop.counter0|add:1 }}{% endif %}{% empty %}0{% endfor %}
Inactive
{% for channel in channels %}{% if not channel.is_active %}{{ forloop.counter0|add:1 }}{% endif %}{% empty %}0{% endfor %}
Types
{% regroup channels by channel_type as channel_groups %} {{ channel_groups|length|default:0 }}
{% if channels %}

Notification Channels

{{ channels.count }} channel{{ channels.count|pluralize }}
{% for channel in channels %}

{{ channel.name }}

{% if channel.is_active %} Active {% else %} Inactive {% endif %} {% if channel.channel_type == 'telegram' %} {% elif channel.channel_type == 'email' %} {% elif channel.channel_type == 'webhook' %} {% elif channel.channel_type == 'slack' %} {% elif channel.channel_type == 'discord' %} {% elif channel.channel_type == 'sms' %} {% else %} {% endif %} {{ channel.get_channel_type_display }}
Rate Limit:
{{ channel.rate_limit }} msg/min
Retry Attempts:
{{ channel.retry_attempts }}
Timeout:
{{ channel.timeout_seconds }}s
{# Channel-specific config #} {% if channel.channel_type == 'telegram' %} {% with config=channel.get_telegram_config %} {% if config.chat_id %}
Telegram Configuration
Chat ID: {{ config.chat_id }}
{% endif %} {% endwith %} {% elif channel.channel_type == 'email' %} {% with config=channel.get_email_config %} {% if config.recipients %}
Email Configuration
Recipients: {{ config.recipients|join:", " }}
{% endif %} {% endwith %} {% elif channel.channel_type == 'webhook' %} {% with config=channel.get_webhook_config %} {% if config.url %}
Webhook Configuration
URL: {{ config.url|truncatechars:50 }}
Method: {{ config.method|default:"POST" }}
{% endif %} {% endwith %} {% endif %}
Created by {{ channel.created_by.username }} • {{ channel.created_at|timesince }} ago
{% if channel.is_active %} {% else %} {% endif %}
{% endfor %}
{% if is_paginated %} {% endif %} {% else %}

No notification channels

Create your first notification channel to start sending alerts.

Create Notification Channel
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}