{% extends 'layouts/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 }}
Pending
{% for n in notifications %}{% if n.status == 'pending' %}{{ forloop.counter0|add:1 }}{% endif %}{% empty %}0{% endfor %}
Delivered
{% for n in notifications %}{% if n.status == 'completed' %}{{ forloop.counter0|add:1 }}{% endif %}{% empty %}0{% endfor %}
Failed
{% for n in notifications %}{% if n.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 %} {% if notification.channel.channel_type == 'telegram' %} {% elif notification.channel.channel_type == 'email' %} {% elif notification.channel.channel_type == 'webhook' %} {% elif notification.channel.channel_type == 'slack' %} {% elif notification.channel.channel_type == 'discord' %} {% elif notification.channel.channel_type == 'sms' %} {% else %} {% 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 %}
{% endblock %} {% block extra_js %} {% endblock %}