Create alert rule
create_alert_ruleCreate an alert rule that watches a metric, error rate, new issue, uptime monitor, web vital or event volume, and fires to the notification channels you name. condition depends on the kind: a metric rule needs { name, agg }, an uptime rule needs { monitorId }, a vital rule needs { vital }. Requires the write scope and metrics.write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | Application id, or orgSlug/appSlug as returned by list_apps | |
| kind | Yes | ||
| name | Yes | ||
| severity | No | ||
| condition | No | ||
| threshold | Yes | ||
| channelIds | No | ||
| comparator | No | ||
| environment | No | Environment slug: production, staging or development. Defaults to production. | |
| windowMinutes | No | ||
| cooldownMinutes | No |