Gate
August 10, 2026 ยท View on GitHub
Automated gating configuration. Omitted (the default) means no gating is configured, which is equivalent to enabled: false.
Example Usage
import { Gate } from "@vercel/sdk/models/blockhistoryroute.js";
let value: Gate = {
enabled: false,
checks: [],
failureThreshold: 3,
windowSize: 5,
action: "rollback",
dryRun: true,
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
enabled | boolean | :heavy_check_mark: | Whether automated gating is enabled for this project's rollouts. | |
checks | models.CreateProjectChecks[] | :heavy_check_mark: | The checks to evaluate. An empty array means nothing is evaluated. | |
failureThreshold | number | :heavy_minus_sign: | How many failing evaluations within {@link windowSize} trip the gate. Defaults to 3 when omitted. | 3 |
windowSize | number | :heavy_minus_sign: | How many of the most recent evaluations {@link failureThreshold} is counted against. Defaults to 5 when omitted. | 5 |
action | models.CreateProjectProjectsResponse200ApplicationJSONAction | :heavy_check_mark: | What to do when the gate trips: pause the rollout, or roll it back. | |
dryRun | boolean | :heavy_check_mark: | When true, a tripped gate is only reported โ {@link action} is not taken. |