Create an alert rule
vs_alert_rules_createCreate an alert rule that fires when a monitor is slower than a response time or below an uptime percent.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"conditions": "<conditions>"
},
"name": "vs_alert_rules_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| enabled | No | ||
| severity | No | INFO, WARNING or CRITICAL. | WARNING |
| timezone | No | IANA time zone for the schedule, for example Europe/Berlin (default UTC). | UTC |
| monitorId | No | Monitor id the rule watches; null watches every monitor. | |
| conditions | Yes | One condition or a list that must all be true: { type: "response_time", threshold: milliseconds, operator: "gt" } or { type: "uptime", threshold: percent, operator: "lt" }. Down alerts, repeated failures and SSL expiry are sent by the built-in alerts and are not rule conditions. | |
| description | No | ||
| scheduleEnd | No | Optional 24h end time (HH:MM). | |
| scheduleStart | No | Optional 24h start time (HH:MM) of the hours the rule may fire, with scheduleEnd and timezone. | |
| cooldownMinutes | No | Minutes before the rule can fire again. | |
| notificationChannelIds | No | Alert channel ids the rule sends to. |