--- title: Create a MetricBase gap trigger description: Create a MetricBase gap trigger to alert you when MetricBase stops receiving data. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/servicenow-platform/metricbase/create-metricbase-gap-trigger.html release: australia product: MetricBase classification: metricbase topic_type: task last_updated: "2026-03-12" reading_time_minutes: 4 breadcrumb: [Trigger flows, MetricBase, Manage instance data sources, Extend ServiceNow AI Platform capabilities] --- # Create a MetricBase gap trigger Create a MetricBase gap trigger to alert you when MetricBase stops receiving data. ## Before you begin Role required: admin ## About this task Gap triggers execute when MetricBase stops receiving data for a specified period. \[Omitted image "mb-gap-trigger.png"\] Alt text: Gap trigger executes on missing data in the database You can define multiple trigger levels to indicate different severities. For example, you can set a gap of 10 minutes as level 1, a gap of 20 minutes as level 2, and so on. Each level should trigger a different Workflow Studio flow. The difference between gap durations on different levels must be at least 10 minutes. For example, if you set level 1 to a gap of 10 minutes, you must set level 2 to a gap of 20 minutes or more. **Note:** If you make the gap durations between levels less than 10 minutes, MetricBase displays an error message and deletes the level that you added. Polling frequency is calculated using the difference between gap durations on different levels and dividing by 2 \(rounded down\). For example, given the following: - Level 1 triggers after 5 minutes of missing data - Level 2 triggers after 30 minutes of missing data The polling frequency is 12 minutes, because Floor\(\(30-5\)/2\) = 12 minutes. The maximum polling frequency is every 5 minutes, and the minimum frequency is every 30 minutes. If a trigger has only one level, the polling frequency is 30 minutes. MetricBase searches through the data that is stored in the MetricBase database, not through incoming data. Therefore, a gap trigger might execute after the gap when data is missing. For example, if MetricBase polls every 10 minutes and the gap is 30 minutes of missing data, the trigger might execute as late as 40 minutes after the data was last received. ## Procedure 1. Navigate to **All** > **MetricBase** > **Workflow Studio** > **Trigger Definitions**. 2. Select **New**. 3. On the **MetricBase** Trigger Creation form, select the **Gap Trigger** option. 4. On the form, fill in the fields. The trigger levels are not initially visible on this form. You configure the levels later.
| Field | Description |
|---|---|
| Name | Name of the trigger. |
| Table name | Table in the MetricBase database that contains the metric that you want to monitor. The only tables that appear when you click the search icon are the tables that you specified in the time-series metrics. If you select a metric before you select a table, only tables that have that metric appear in the **Table name** dialog box. |
| Active | Option to activate the trigger. |
| Metric | Table metric that you want to monitor that is specified by the **Table name**. The only metrics that appear when you click the search icon are the metrics in that table. If you select a metric before you specify a **Table name**, the metrics in all your time-series metrics appear. After you select a metric, only the tables that contain that metric appear when you click the search icon that is next to the **Table name**. |
| Description | Description of the trigger. |