Skip to main content
In Maia, you can subscribe to notifications to receive alerts when pipelines run. These alerts help you respond quickly to issues, minimize downtime, and improve overall reliability. You can subscribe to either or both of the following alert types:
  • Completion alerts inform you about a finished pipeline run, including its status (Success, Failure, Cancelled, or Skipped).
  • Anomaly alerts tell you when the duration of a pipeline run deviates significantly from historical baselines.
When you subscribe to notifications, you select a project and environment that you want to receive alerts about, and choose how to receive alerts. You’ll then receive alerts for all pipeline runs in the selected project and environment that meet the alert criteria you choose. Alerts can be sent via:
  • Email: Alerts are sent to the email address you use to log in to Maia.
  • Slack: Alerts are sent to a channel via an incoming Slack webhook.
  • Webhook: Alerts are sent to an app via an incoming webhook.
Notifications are only sent for scheduled or API-driven pipeline runs—pipelines run manually through Designer don’t generate notifications.

Use cases

  • Environment-specific routing: Send development failures to a sandbox channel and production alerts to your high-priority alerts channel.
  • Noise reduction: Rather than building alerts into every pipeline, simply subscribe to a project or environment once.
  • Anomaly detection: Receive alerts when a pipeline run takes significantly longer or shorter than expected, so you can investigate performance issues before they escalate.

Completion alerts

Completion alerts contain the following information about the completed pipeline run:
  • Pipeline name and file path within your project
  • Pipeline run status
  • End time of the pipeline run
Click View pipeline run details to view this run’s pipeline run details. Click Update notification settings to manage your notifications. If the alert is for a Failure status, it also includes a View Impact Stream link that opens the Impact stream for that run.

Anomaly alerts

Anomaly alerts notify you when a pipeline run’s duration deviates significantly from its historical baseline. Anomaly alerts contain the following information about the pipeline run that deviated from its baseline:
  • Pipeline name
  • Anomaly type
  • Environment name
  • Start timestamp
  • Elapsed duration
  • Expected upper and lower bounds
Click View pipeline run details to view this run’s pipeline run details. Click Update notification settings to manage your notifications.

Requirements for calculating a duration baseline

A pipeline must complete at least 10 successful runs before Maia can calculate a baseline for its duration and send anomaly alerts. Maia can’t send anomaly alerts for pipelines with fewer than 10 completed runs. When you publish a new pipeline version, this baseline resets. The new version of the pipeline must complete 10 successful runs before Maia can resume sending anomaly alerts.

How duration anomalies are calculated

Maia compares every pipeline run’s duration against that pipeline’s own recent history. If the run falls well outside the range of normal durations, it’s flagged as a duration anomaly. There are two types of duration anomaly:
  • Slow anomaly—the run took longer than expected. This can be detected while the pipeline is still running, as well as at completion.
  • Fast anomaly—the run finished unusually quickly. This is only detected at completion.
Maia uses the duration of up to 300 of a pipeline’s most recent successful runs to calculate an expected range for the pipeline’s duration:
  • It takes the median (middle) run duration as the center of “normal.”
  • It measures how far normal runs spread above the median—out to the slowest runs that are still routine (the 99th percentile). It does the same on the fast side, down to the quickest routine runs (the 1st percentile).
  • The upper bound (slow threshold) is the median plus twice that upward spread. A run has to land well beyond even the normally-slow end of the range before it’s flagged as slow.
  • The lower bound (fast threshold) is the median minus twice the downward spread, and never drops below zero. For most pipelines it works out to zero—so they’re never flagged as “too fast.” It only becomes meaningful for pipelines that normally run long and consistently, where finishing in a fraction of the usual time is a genuine signal that the run did little or no work.
Maia always applies a small minimum spread, so a pipeline that finishes in almost exactly the same time every run still gets a sensible margin instead of a hair-trigger threshold. In plain terms: the range scales to how variable each pipeline normally is. Steady pipelines get a tight range, so even a modest slowdown is flagged; naturally variable pipelines—or ones with a mix of quick and long runs—get a wider range, so ordinary fluctuation doesn’t trigger false alerts.

Subscribe to notifications

The steps for subscribing to completion alerts and anomaly alerts are the same.

Prerequisites

  • To receive alerts for a pipeline, you need access to the project and environment where the pipeline runs.
  • To receive alerts via Slack, you need an incoming webhook URL for the Slack channel you want to send the alert to. For more information about creating incoming webhook URLs in Slack, read the Slack Sending messages using incoming webhooks documentation.
  • To receive alerts via a webhook, you need an incoming webhook URL that represents where to send the message. For more information about creating or obtaining an incoming webhook URL in your chosen destination, read the destination provider’s incoming webhook documentation.

Setup

  1. In the left navigation, click your Profile & Account icon, then Notifications.
  2. Click Add notification.
  3. Select the Project and Environment you’d like to be notified about.
  4. Click Add next to the alert types you want to subscribe to: Pipeline completion alerts and/or Anomaly alerts.
    1. If you’re subscribing to pipeline completion alerts, select the statuses you want to receive alerts about: Success, Failure, Cancelled, and/or Skipped.
    2. If you’re subscribing to anomaly alerts, select Enable anomaly alerts.
    You can add any number of alerts for the selected project and environment. This allows you to combine different alert conditions and delivery methods, for example to send successful pipeline completion alerts and failed pipeline completion alerts to different Slack channels.
  5. Select one or more delivery methods for the selected alert type: Email, Slack, and/or Webhook.
    No additional setup is required. Alerts are sent to the email address you use to log in to Maia.
  6. Click Add notification. You’ll go back to the Manage notifications list.

Variables in webhook payloads

If you select the Webhook delivery method, you can use variables in the payload template. When the alert is sent, the variable will be replaced with its corresponding value.

Pipeline completion alert variables

For example:

Anomaly alert variables

For example:

Manage pipeline notifications

After creating a notification, you’ll return to the Manage notifications list. This table contains the following information about the notifications you have subscribed to:
  • Project: The project you’re receiving notifications for.
  • Environment: The environment you’re receiving notifications for.
  • Type: The alert type: Completion or Anomaly.
  • Trigger: The events that will trigger the alert. For pipeline completion alerts, this lists the pipeline statuses you selected. For anomaly alerts, this always says Anomaly.
  • Delivery: The delivery methods you selected and, if applicable, the webhook or Slack webhook name.
To edit a pipeline notification, click the three dots … in its row, and select Edit. Make any required changes, then click Save. To delete a pipeline notification, click the three dots … in its row, and select Delete. In the confirmation dialog, click Delete.