{% extends "base.html" %} {% block title %}Notification rules · NEXXVU{% endblock %} {% macro tip(label, text) %}{{ text }}{% endmacro %} {% macro choose(name, current, inherit_label) %}{% endmacro %} {% block content %}

Settings

Notification rules {{ fresh_tag("settings:notification-rules") }}

How the administrators hear when a device is down or critical. The most specific rule wins: the device, then its location, then its ecosystem, then the whole Portal.

All settings
{% include "_settings_navigation.html" %}
{% if notice %}
{{ notice }}
{% endif %} {% if error %}{% endif %} {% if not rules %}

Notification rules are not available on this Portal yet.

{% else %}

Devices now {{ tip("the counts", "How many devices each channel reaches with the rules below. A critical device always gets e-mail and SMS, whatever the rules say. When a device is down with the devices it carries, one message names them together.") }}

{% for c in rules.channels %}{{ rules.counts[c] }} {{ rules.labels[c] }}{% endfor %}

Whole Portal {{ tip("the Portal rule", "Every device that has no rule of its own, no location rule and no ecosystem rule. E-mail and SMS: SMS goes through the LTE notification device (Settings › SMS alerts). Portal only: nobody is messaged; the problem shows in the Portal.") }}

Ecosystems

{% if rules.ecosystems %}
{% for e in rules.ecosystems %}{% endfor %}
EcosystemChannel
{{ e.name }}{% if admin %}{{ choose('rule-eco-' ~ e.id, e.channel, 'As the Portal') }}{% else %}{{ rules.labels[e.channel] if e.channel else 'As the Portal' }}{% endif %}
{% else %}

No ecosystems yet.

{% endif %}

Locations {{ tip("location rules", "A location's rule covers the devices placed there and in the locations inside it (a building covers its rooms).") }}

{% if rules.locations %}
{% for l in rules.locations %}{% endfor %}
LocationInsideEcosystemChannel
{{ l.name }}{{ l.parent or '-' }}{{ l.ecosystem }}{% if admin %}{{ choose('rule-loc-' ~ l.id, l.channel, 'As above') }}{% else %}{{ rules.labels[l.channel] if l.channel else 'As above' }}{% endif %}
{% else %}

No locations yet (Inventory › Locations).

{% endif %} {% if admin %}
{% else %}

Only Portal administrators change the rules.

{% endif %}

Devices with their own choice {{ tip("own choices", "Chosen on the device: Identity › Alerts. Choose As the rules say there to follow the rules above.") }}

{% if rules.own %}
{% for d in rules.own %}{% endfor %}
DeviceChannelCritical
{{ d.name }}{{ rules.labels[d.preference] }}{{ 'Yes - e-mail and SMS' if d.critical else '-' }}
{% else %}

Every device follows the rules.

{% endif %} {% endif %}
{% endblock %}