{% extends 'base.html' %} {% load static %} {% block title %}Notifications - Stream Processor{% endblock %} {% block page_title %}
Notifications
{% endblock %} {% block content %}

Notifications

View and manage notification delivery history

Total Sent

{{ notifications|length|default:0 }}

Pending

{% for notification in notifications %}{% if notification.status == 'pending' %}{{ forloop.counter0|add:1 }}{% endif %}{% empty %}0{% endfor %}

Delivered

{% for notification in notifications %}{% if notification.status == 'completed' %}{{ forloop.counter0|add:1 }}{% endif %}{% empty %}0{% endfor %}

Failed

{% for notification in notifications %}{% if notification.status == 'failed' %}{{ forloop.counter0|add:1 }}{% endif %}{% empty %}0{% endfor %}

Clear
Total Sent
{{ notifications|length }}
Pending

{% for notification in notifications %} {% if notification.status == 'pending' %}{{ forloop.counter0|add:1 }}{% endif %} {% empty %}0{% endfor %}

Delivered

{% for notification in notifications %} {% if notification.status == 'completed' %}{{ forloop.counter0|add:1 }}{% endif %} {% empty %}0{% endfor %}

Failed

{% for notification in notifications %} {% if notification.status == 'failed' %}{{ forloop.counter0|add:1 }}{% endif %} {% empty %}0{% endfor %}

{% if notifications %}

Recent Notifications

{{ notifications.count }} notification{{ notifications.count|pluralize }}
{% for notification in notifications %}
{% if notification.status == 'completed' %} Delivered {% elif notification.status == 'pending' %} Pending {% elif notification.status == 'failed' %} Failed {% else %} {{ notification.status|title }} {% endif %} {{ notification.channel.name }}
{{ notification.scheduled_at|timesince }} ago
{% if notification.subject %}
{{ notification.subject }}
{% endif %}

{{ notification.message|truncatechars:200 }}

Recipient:
{{ notification.recipient }}
{% if notification.template %}
Template:
{{ notification.template.name }}
{% endif %}
Attempts:
{{ notification.delivery_attempts }}
{% if notification.sent_at %}
Delivered: {{ notification.sent_at|timesince }} ago {% if notification.external_id %} (ID: {{ notification.external_id }}) {% endif %}
{% endif %} {% if notification.error_message %}
Error Message
{{ notification.error_message }}
{% endif %}
{% if notification.can_retry %} {% endif %}
{% endfor %}
{% if is_paginated %} {% endif %} {% else %}
No notifications

No notifications have been sent yet

Configure Notification Rules
{% endif %}
About Notifications

This page shows the delivery history of all notifications sent by the system. Each notification includes:

  • Status - Whether the notification was delivered, is pending, or failed
  • Channel - The delivery method used (Telegram, email, webhook, etc.)
  • Recipient - The target recipient identifier
  • Template - The message template used for formatting
  • Delivery Attempts - Number of times delivery was attempted
  • Error Messages - Details about any delivery failures
{% endblock %} {% block extra_js %} {% endblock %}