DEBUG = {{ '{{' }} 'True' if env.DEBUG else 'False' {{ '}}' }} SECRET = "{{ '{{' }} env.SECRET_KEY {{ '}}' }}" ALERT_TIMEOUT = {{ alerta_alert_timeout }} HEARTBEAT_TIMEOUT = {{ alerta_heartbeat_timeout }} DEFAULT_ENVIRONMENT = '{{ alerta_default_environment }}' ALLOWED_ENVIRONMENTS = ['{{ alerta_environments | join("', '") }}'] PLUGINS = ['{{ alerta_plugins | join("', '") }}'] {% if 'blackout' in alerta_plugins %} NOTIFICATION_BLACKOUT = {{ 'True' if alerta_plugin_blackout.set_status else 'False' }} BLACKOUT_ACCEPT = ['{{ alerta_plugin_blackout.accept | join("', '") }}'] {% endif %} {% if 'heartbeat' in alerta_plugins %} HEARTBEAT_EVENTS = ['{{ alerta_plugin_heartbeat.events | join("', '") }}'] {% endif %} {% if 'prometheus' in alerta_plugins %} {% for opt, value in alerta_plugin_prometheus.items() %} ALERTMANAGER_{{ opt | upper }} = {{ value }} {% endfor %} {% endif %} {% if 'amqp' in alerta_plugins %} AMQP_URL = 'redis://localhost:6379/' {% endif %}