set_performance_budget
Set performance budget thresholds for a site to define acceptable metric limits and trigger webhook events on violations. Pass null to remove all budgets.
Instructions
Set performance budget thresholds for a site. When a scan violates these thresholds, webhook events (threshold.exceeded, performance.regression) will fire. Pass null to remove all budgets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cls | No | Cumulative Layout Shift budget | |
| fcp | No | First Contentful Paint budget in milliseconds | |
| lcp | No | Largest Contentful Paint budget in milliseconds | |
| tbt | No | Total Blocking Time budget in milliseconds | |
| url | No | The URL of the website | |
| ttfb | No | Time to First Byte budget in milliseconds | |
| site_id | No | The Pulspeed site ID (alternative to URL) | |
| performance_score | No | Minimum acceptable performance score (0-100) |