---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/servicenow-platform

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Create a linear predictor trigger

# Create a MetricBase linear
predictor trigger {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 4 Minuten Lesedauer

Create a MetricBase linear predictor trigger to detect when a metric is likely to cross a specified threshold within a specified period of time.{#create-mb-linear-predictor-trigger__mb-linear-predictor-trigger-sd}

## Vorbereitungen

Role required: admin

## Warum und wann dieser Vorgang ausgeführt wird

The linear predictor trigger uses past data to generate a line that predicts future
values. When MetricBase predicts that the linear value reaches a
threshold, the trigger executes.  
Abbildung : 1. Linear predictor crosses the threshold

If the most recent data point reaches the threshold, the trigger executes regardless
of the linear prediction.

Trigger parameters include how much past data to use in the calculation of the
prediction, how far ahead to look, and the level of confidence that you accept.

## Prozedur

1. Navigate to AllMetricBaseMetricBase TriggersTrigger Definitions.
2. Select New.
3. On the MetricBase Trigger Creation form, select the Linear Predictor 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.{#create-mb-linear-predictor-trigger__table_khd_cjn_pbb__entry__2}{#create-mb-linear-predictor-trigger__window-mb-cell-calc-line}

   | Field | Description |
   |-|-|
   | Name | Name of the linear predictor 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. |
   | 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. |
   | Active | Option to activate the trigger. |
   | Window | Length of time used to calculate the line that predicts the future course of the value. For example, you might want to use the last 10 minutes of data to calculate the linear predictor. If the value is too long, the line does not reflect current trends. If the value is too short, the line might follow the raw values too closely and not accurately reflect the overall trend of the values. The value must be at least 10 times the sampling period that is defined by the sampling rate of your Metric. Warnung: Do not confuse this value with the Window value in the [trigger level](https://servicenow-prod.fluidtopics.net/Pk5fWH0GrmTcGzmHdmLD3Q#create-mb-linear-predictor-trigger__window-mb-trigger-level). That value specifies how far into the future that you want the linear predictor to look to see if the Metric is likely to cross the Threshold. |
   | Confidence Level (%) | A measure of how closely the real data fits the linear prediction of the data. A confidence level of 95% means that the real value must be within 5% of the predicted value to execute a trigger. If you only want to trigger when the real values are close to the predicted values, choose a high confidence percentage. If you are willing to accept real data that varies more significantly from the predicted values as being valid, select a lower confidence level, for example, 80%. |
   | Trend | Direction of the trend: upward or downward. For example, the value is increasing or decreasing toward the Threshold. |
   | Threshold | Target value that the metric is expected to reach before the trigger executes. |
   | Description | Description of the trigger. |
   [Tabelle : 1. MetricBase Linear Predictor Trigger form]

   {#create-mb-linear-predictor-trigger__table_khd_cjn_pbb}
5. Select Save.  
   A new record is created.
6. In the MetricBase Linear Predictor Trigger Levels section on the record you just created, double-click each cell to add values that specify trigger parameters.  
   {#create-mb-linear-predictor-trigger__table_khd_cjn_pbba__entry__2}{#create-mb-linear-predictor-trigger__window-mb-trigger-level}

   | Field | Description |
   |-|-|
   | Level | Numbers that indicate increasing severity. Each level should trigger a different flow. For example, you might define the following: Level 1 :   Battery is predicted to reach 20% in 30 minutes. Level 2 :   Battery is predicted to reach 20% in 5 minutes. Level is often used in Condition Scripts. See [Execute triggers conditionally](https://servicenow-prod.fluidtopics.net/WizCHhWwLl0KkDjJVFqIxw "MetricBase triggers execute based on a single metric. Condition Scripts impose additional requirements that determine whether a trigger kicks off a flow."). |
   | Function | Comparative function to use on the threshold value. Less than or is is the only available option. For example, battery life Less than or is 30 minutes. |
   | Window | How far into the future that you want the linear predictor to look to see if the metric is predicted to cross the threshold. Warnung: Do not confuse this value with the Window value in the [trigger definition form](https://servicenow-prod.fluidtopics.net/Pk5fWH0GrmTcGzmHdmLD3Q#create-mb-linear-predictor-trigger__window-mb-cell-calc-line). That value specifies how much data to use (measured in time) to calculate the slope of the predictor line. |
   [Tabelle : 2. MetricBase Linear Predictor Trigger Levels]

   {#create-mb-linear-predictor-trigger__table_khd_cjn_pbba}
7. **Wahlweise:** Add rows to the table to create multi-layered triggering behavior.  
   Typically, each additional row (level) indicates a more severe condition. The Workflow Studio flow associated with the level should warn with increasing severity.
8. Select Update.
9. **Wahlweise:** Add a triggering condition that determines whether a trigger executes a Workflow Studio flow.  
   See [Execute triggers conditionally](https://servicenow-prod.fluidtopics.net/WizCHhWwLl0KkDjJVFqIxw "MetricBase triggers execute based on a single metric. Condition Scripts impose additional requirements that determine whether a trigger kicks off a flow.").
{#create-mb-linear-predictor-trigger__steps_nmz_zql_fdb}

## Linear Predictor form {#create-mb-linear-predictor-trigger__example_ocn_lzj_ktb}

## Nächste Maßnahme

Associate this trigger with a Workflow Studio flow. For more information, see [Assign a trigger to a flow](https://servicenow-prod.fluidtopics.net/vsq69MLtx2Gtg1FT3WVbow "Now that you created a trigger, use Workflow Studio to specify the flow a trigger executes. The flows can provide alerts for unexpected behavior.").

