create_monitor
Create a new uptime monitor to watch a URL or IP, setting check intervals, timeouts, and alert contacts for availability tracking.
Instructions
Create a new monitor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL or IP address to monitor. | |
| type | No | Monitor type. 1=HTTP(S), 2=Keyword, 3=Ping, 4=Port, 5=Heartbeat. | |
| timeout | No | Timeout in seconds (1-300, default 30). | |
| interval | No | Check interval in seconds (60-2592000, default 300). | |
| post_type | No | POST body format: "raw" or "keyvalue". | |
| post_value | No | POST body content. | |
| http_method | No | HTTP method for HTTP(S) monitors. 1=HEAD, 2=GET, 3=POST, 4=PUT, 5=PATCH, 6=DELETE, 7=OPTIONS. | |
| keyword_type | No | Required for Keyword monitors (type=2). 1=Keyword exists, 2=Keyword not exists. | |
| friendly_name | Yes | Display name for the monitor. | |
| keyword_value | No | The keyword to search for. Required for type=2. | |
| alert_contacts | No | Alert contacts to attach, format "id_threshold_recurrence". Separate multiple contacts with "-". Example: "123_0_0-456_0_0". | |
| http_auth_type | No | HTTP authentication type. 0=None, 1=Basic, 2=Digest. | |
| http_auth_user | No | Username for HTTP authentication. | |
| http_auth_secret | No | Credential for HTTP authentication. | |
| ignore_ssl_errors | No | Whether to ignore SSL certificate errors. | |
| keyword_case_type | No | 0=Case insensitive, 1=Case sensitive. | |
| post_content_type | No | Content-Type header for POST requests. Options: "application/json", "application/x-www-form-urlencoded", "text/xml", "text/plain". | |
| custom_http_headers | No | JSON string of additional request headers. Example: '{"X-Custom-Header":"value"}'. | |
| custom_http_statuses | No | Custom HTTP status code mappings. Format: "200:1_201:1_404:0" where 1=up, 0=down. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||