SetProjectAlerts
Changes what Pethost watches on a project and when it tells the person: site checks (an address the machine opens every minute) and traffic rules (5xx or p95 over a window), off, mute. A list given replaces the project's (send Project.alerts' with your change); remove_* empties it; a scalar left out stays. Service crashes and failed backups are always watched. Answers with Project.alerts. Where alerts go is the person's choice in the panel's Settings → Alerts (Machine.alert_channels): no tool sets it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| off | No | True = incidents are recorded, nothing is sent. Absent = stays. | |
| checks | No | ≤10. Given = the whole list. | |
| project_id | No | ||
| mute_minutes | No | ≤10080; 0 = unmute. Incidents opened meanwhile are not sent. Absent = stays. | |
| remove_checks | No | True = none, not even the default check. | |
| traffic_rules | No | ≤10. Given = the whole list. | |
| remove_traffic_rules | No | True = none. |