Skip to content

Signal Escalation — Database Configuration

Backend database settings for escalation suppression, reminders, templates, and timing.

5 min read Updated SS RS

Scope: Backend database configuration for Multi-Level Signal Escalation — suppression time, maximum reminders, custom email/SMS templates, and timing mode. Perform these steps after the database migration completes (see Deploying Multi-Level Signal Escalation). The Control Center UI durations are configured separately — see Configuring Signal Escalation in the Control Center. For what the feature does, see the overview.

The following configurations should be performed after the database migration is completed successfully.

Identify the rows before changing them#

These steps are for an authorized platform/database operator after the approved migration. Confirm the intended account identifier and its database account_id, capture the current values, and prepare a reviewed rollback using those values. Keep a backup according to the deployment change procedure.

Run the account-scoped SELECT below first. Confirm the expected level records and that each intended account/notification-type pair selects exactly the row you plan to change. If the scope is missing, duplicated or unexpected, resolve it before any update. Substitute reviewed values in the examples; never remove the account predicate. After each change, repeat the scoped SELECT and compare the saved values and affected-row result with the intended scope.

1. Configure suppression time & maximum reminders#

The database migration introduces changes to the following tables:

  • notification_settings
  • application_notification_settings

Scope: The SQL examples below target account-level notification_settings. Application-level overrides require a separately reviewed query with the installed table's verified account/application identity columns; do not substitute table names in these examples.

Step 1: Verify notification settings#

Execute the following query for the required account:

SELECT * FROM notification_settings WHERE account_id = <account_id>;

The query returns 7 records, one for each escalation level:

Notification Type ID Escalation Level
291 L1 (Immediate)
292 L2
293 L3
479 L4
480 L5
481 L6
482 L7

Default values#

L1 (Notification Type ID: 291) — the following fields are always set to 0 by default and should not be modified:

  • no_of_minutes
  • suppression_minutes
  • max_reminders

L1 is the Immediate Notification user.

L2 & L3 (Notification Type IDs: 292 and 293) — after migration, the following fields are initialized to 0 and should be updated based on the required configuration:

  • suppression_minutes
  • max_reminders

L4 to L7 (Notification Type IDs: 479–482) — default values are populated during migration. These values can be modified based on the notification requirements.

Step 2: Update suppression time and maximum reminders#

Use the following queries to configure the required values:

UPDATE `appsone`.`notification_settings` SET `suppression_minutes`='<suppression_value>', `max_reminders`='<max_reminders_value>' WHERE `notification_type_id`='292' AND `account_id`=<account_id>;
UPDATE `appsone`.`notification_settings` SET `suppression_minutes`='<suppression_value>', `max_reminders`='<max_reminders_value>' WHERE `notification_type_id`='293' AND `account_id`=<account_id>;
UPDATE `appsone`.`notification_settings` SET `suppression_minutes`='<suppression_value>', `max_reminders`='<max_reminders_value>' WHERE `notification_type_id`='479' AND `account_id`=<account_id>;
UPDATE `appsone`.`notification_settings` SET `suppression_minutes`='<suppression_value>', `max_reminders`='<max_reminders_value>' WHERE `notification_type_id`='480' AND `account_id`=<account_id>;
UPDATE `appsone`.`notification_settings` SET `suppression_minutes`='<suppression_value>', `max_reminders`='<max_reminders_value>' WHERE `notification_type_id`='481' AND `account_id`=<account_id>;
UPDATE `appsone`.`notification_settings` SET `suppression_minutes`='<suppression_value>', `max_reminders`='<max_reminders_value>' WHERE `notification_type_id`='482' AND `account_id`=<account_id>;

Application overrides: If application_notification_settings is used, obtain its schema and account/application identity mapping from the platform owner, select and capture those exact rows, and review a scoped update and rollback. Do not copy the account SQL with a different table name.

2. Configure custom email and SMS templates#

Custom notification templates can be configured for individual escalation levels by mounting the required Velocity (.vm) files into the heal-notification-processor container and updating the corresponding template paths in the database.

Step 1: Mount custom templates#

Add the required template files in the Notification Processor Nomad job.

Example:

"/opt/Installer/vm_templates/L2/L2signal-email-subject-details.vm:/opt/heal-notification-processor/config/vm-templates/L2signal-email-subject-details.vm"
"/opt/Installer/vm_templates/L2/L2signal-email-body-details.vm:/opt/heal-notification-processor/config/vm-templates/L2signal-email-body-details.vm"
"/opt/Installer/vm_templates/L2/L2signal-sms-details.vm:/opt/heal-notification-processor/config/vm-templates/L2signal-sms-details.vm"
"/opt/Installer/vm_templates/L2/L2signal-latest-events.vm:/opt/heal-notification-processor/config/vm-templates/L2signal-latest-events.vm"

Note: Use unique template names for each escalation level (L1–L7).

Step 2: Update template paths in the database#

After mounting the templates, update the corresponding template path in the notification_settings table.

Example for L2 (Notification Type ID: 292):

UPDATE `appsone`.`notification_settings` SET `email_subject_template`='./vm-templates/L2signal-email-subject-details.vm' WHERE `notification_type_id`='292' AND `account_id`=<account_id>;
UPDATE `appsone`.`notification_settings` SET `email_body_template`='./vm-templates/L2signal-email-body-details.vm' WHERE `notification_type_id`='292' AND `account_id`=<account_id>;
UPDATE `appsone`.`notification_settings` SET `sms_template`='./vm-templates/L2signal-sms-details.vm' WHERE `notification_type_id`='292' AND `account_id`=<account_id>;
UPDATE `appsone`.`notification_settings` SET `latest_events_template`='./vm-templates/L2signal-latest-events.vm' WHERE `notification_type_id`='292' AND `account_id`=<account_id>;

Notes:

  • Repeat the same updates for the required notification levels (L1–L7).
  • The database path must always follow the format: ./vm-templates/<template_file_name>.vm
  • Only mounted templates are used during notification generation. If a template path is not configured, the default template is used.
  • No changes are required in the email_templates and sms_templates tables. Their placeholders remain global for all accounts.

3. Configure escalation timing mode#

The notification processor supports three escalation timing modes:

Escalation Mode MST Sub Type
FIRST_FIRE 483
LAST_FIRE 484
SIGNAL_START 485

The timing definitions below follow the Notification Processor v2.1.7 escalation release guidance. Confirm that the installed processor supports these modes and check the saved mode before calculating a wait. If the UI still shows the earlier timing labels, ask the platform owner which build and procedure applies.

The escalation mode is controlled using the escalation_timing_mode column.

  • FIRST_FIRE — a level waits from the predecessor level's first firing for that signal.
  • LAST_FIRE — a level waits from the predecessor level's most recent firing for that signal.
  • SIGNAL_START — escalation duration is calculated from the signal creation time.

Default value: FIRST_FIRE.

A level must still have an eligible recipient and its predecessor must have fired. Escalation advances on an incoming message or reminder after the wait is satisfied; changing the timing mode does not create a background timer.

4. Validate escalation configurations in Redis#

To validate the escalation configurations, verify the corresponding Redis keys by following the steps below.

Step 1: Log in to the Redis Docker container#

docker exec -it <redis-container> bash

Step 2: Connect to the Redis client#

Execute the following command to connect to the Redis cluster:

redis-cli -c --tls --cert /etc/redis.crt --key /etc/redis.key --cacert /etc/appnomic-rootca.crt -h <redis_ip> -p 7001 -a <password>

Step 3: Validate the Redis keys#

Account-level escalation configuration#

Run the following command to view the account-level escalation configuration:

HGETALL /accounts/<account_identifier>/signal/escalations

Application-level escalation configuration#

Run the following command to view the application-level escalation configuration:

HGETALL /accounts/<account_identifier>/applications/<application_identifier>/signal/escalations

Troubleshooting#

If an expected escalation did not fire, see Multi-Level Signal Escalation — Troubleshooting for common causes (ordering, eligibility, timing base) and the information to gather before contacting support.


Related: Feature overview · Deployment · Control Center configuration