create_alert_rule
Create an alert rule to monitor CPU, memory, or disk usage.
When the metric crosses the threshold, a notification is sent via email and/or webhook. Max 10 rules per site.
Requires: API key with write scope.
Args: slug: Site identifier metric: "cpu", "memory", or "disk" (percentage-based) threshold: Threshold value 0-100 (e.g. 90 for 90%) operator: "gt" (greater than) or "lt" (less than). Default: "gt" severity: "warning" or "critical". Default: "warning" cooldown_minutes: Min minutes between repeated alerts. Default: 30 notify_email: Send email notification. Default: true notify_webhook: Optional webhook URL for POST notifications
Returns: {"id": "uuid", "metric": "disk", "threshold": 90, ...}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| metric | Yes | ||
| operator | No | gt | |
| severity | No | warning | |
| threshold | Yes | ||
| notify_email | No | ||
| notify_webhook | No | ||
| cooldown_minutes | No |