Skip to main content

Query Alerts

๐Ÿ”” Query Alerts notify you automatically when a saved query's result crosses a condition you set โ€” by email or Slack, on a schedule you choose.


๐Ÿ“ Accessing Query Alertsโ€‹

Entry pointPath
From a saved queryQuery editor โ†’ More actions (โ‹ฏ) โ†’ Create alert
All alerts for a queryQuery editor โ†’ More actions (โ‹ฏ) โ†’ View alerts
All alerts admin viewBI โ†’ Queries โ†’ Query Alerts

โž• Creating an Alertโ€‹

Opening Create alert starts a 3-step wizard, titled after the query by default. Edit the title at the top of the dialog any time.

info

The query must return exactly one result row. Build it to summarize down to a single count, total, or flag rather than a list of matching records โ€” the wizard blocks you from continuing if the query currently returns zero or multiple rows.

Step 1 ยท Rules โ€” set the condition, severity, and schedule:

  • Condition โ€” pick Column vs value or Column vs column, a column from the query's result, a comparison, and either a fixed value or a second column to compare against.
  • Severity โ€” Info, Warning, or Critical.
  • Schedule โ€” how often to check: every 15 minutes, every 30 minutes, hourly, daily, weekly, or monthly. Daily, weekly, and monthly schedules also ask for a time of day; weekly asks for the day(s) of the week and monthly asks for the day of the month.

Rules step showing condition, severity, and schedule

Step 2 ยท Recipients โ€” choose how to be notified:

  • Email โ€” add one or more recipient email addresses.
  • Slack โ€” pick a channel from your tenant's connected Slack workspace. If Slack isn't connected yet, you're prompted to connect it first.

Recipients step showing notification channel and recipients

Step 3 ยท Review โ€” check the summary, optionally add a short note, then either:

  • Test โ€” runs the query right now and shows whether the condition would trigger, without saving the alert or sending any notification.
  • Save โ€” creates the alert and activates it immediately.

Review step showing summary, note, Test and Save


โš™๏ธ Choosing a Conditionโ€‹

ComparisonExample
is greater thanDaily Revenue is greater than 5000
is less thanQuantity On Hand is less than 10
is greater than or equal toOccupancy % is greater than or equal to 90
is less than or equal toDays Until Expiry is less than or equal to 3
equalsOrder Status equals Failed
does not equalSync Status does not equal OK

Compare a column to a fixed value (Column vs value), or to another column from the same result row (Column vs column โ€” e.g. Actual Cost is greater than Budgeted Cost).


๐Ÿ“‹ Managing Your Alertsโ€‹

The Query Alerts list shows every alert with two independent pieces of state:

  • Status โ€” whether the alert itself is turned on: Active or Paused. A paused alert stops checking until resumed.
  • Last result โ€” the outcome of the most recent check:
    • Never run โ€” no scheduled check has happened yet.
    • Condition not met โ€” the check ran and nothing needed to be reported.
    • Condition met โ€” the condition was true but no notification went out (for example, no recipients are configured).
    • Triggered โ€” email sent / Triggered โ€” Slack sent โ€” the condition was true and a notification was delivered.
    • Error: <details> โ€” the last check couldn't run (for example, the query stopped returning a single row). The alert keeps checking on schedule but won't notify anyone until the underlying issue is fixed.

Query Alerts list showing severity, status, schedule, recipients, and last result

From the list, each alert has:

  • Evaluate now โ€” runs a real check immediately. Unlike Test in the creation wizard, this is a genuine check: if the condition is met, it notifies recipients for real, the same as a scheduled run.
  • Edit โ€” reopens the same 3-step wizard to change the condition, schedule, severity, or notification settings.
  • Open query โ€” jumps to the query this alert is built on.
  • Pause / Resume โ€” shown depending on the alert's current Status.
  • Delete โ€” permanently removes the alert and its evaluation history.
warning

Deleting an alert cannot be undone.


๐Ÿ”” Notification Channelsโ€‹

  • An alert delivers to exactly one channel โ€” Email or Slack โ€” never both at once. Create a second alert on the same query if you need both.
  • Slack alerts require your tenant's Slack workspace to stay connected โ€” the same connection used by Sharing & Delivery.
  • Changing an alert's channel while editing it clears the previous channel's recipients or channel selection.

๐Ÿšซ Scope Notesโ€‹

  • Severity only affects how the notification is labeled (an [INFO] / [WARNING] / [CRITICAL] prefix) โ€” it does not change who is notified or how quickly.
  • An alert's query must return exactly one result row on every scheduled check, not just when the alert was created.
tip

Reserve every-15-minute and every-30-minute schedules for genuinely time-sensitive checks.