Change uptime monitor
update_uptime_monitorChange an uptime monitor: its address, kind, interval ('make it check every 30 seconds'), keyword, port, expected status codes, when and how it alerts, its name or labels. Omitted fields stay as they are; the interval must be one the plan allows. Pause, resume, check now and delete are pause_monitor, resume_monitor, run_monitor and delete_monitor; where alerts go is the task's channels.
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": {
"uuid": "<uuid>"
},
"name": "update_uptime_monitor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A new address (a host name for a port or DNS monitor) | |
| kind | No | What to check: 'http' (default) requests the address and is down when the HTTP status is outside expectedStatus, the request fails or times out, or the certificate is invalid; 'keyword' also reads the response and is down when keyword is missing (or present, with keywordMode 'absent'); 'port' opens a TCP connection to the host in url on port; 'dns' looks up the host's records of dnsRecordType (through public resolvers) and is down when there are none or they lack a value in dnsExpected; 'email' (the Email preset: url is the domain of the email addresses, example.com) watches its MX, SPF, DMARC and DKIM records: at setup Monity looks them up, tries the usual DKIM selectors (plus emailSelectors), keeps what it finds as the baseline, and alerts when one disappears, changes or becomes invalid (two SPF records, more than 10 SPF lookups, +all, a DMARC record without p=, a revoked DKIM key); refused when the domain has no email records; 'heartbeat' checks nothing itself: the person's job (a cron, a backup) calls the monitor's secret heartbeat URL, and it is down when no call arrives within the interval plus graceSeconds. | |
| name | No | A new name | |
| port | No | port monitors: the TCP port (5432 for PostgreSQL, 443, 22…); the host is url. | |
| uuid | Yes | The uptime monitor (from get_uptime_status or list_monitors) | |
| labels | No | Replaces its labels by name; [] or null removes them all. | |
| method | No | The HTTP method (GET by default; HEAD for a lighter check, not with a keyword). | |
| keyword | No | keyword monitors: the text the response must contain (or must not, with keywordMode 'absent'), case-insensitive, e.g. 'Add to cart'. | |
| ignoreTls | No | Accept an invalid or self-signed certificate (a staging server); default false. Expiry is still watched. | |
| assertions | No | http and keyword monitors: checks on the answer that must all pass, e.g. [{source:'json', path:'$.status', op:'equals', value:'ok'}] for an API health endpoint. [] removes them. | |
| dnsExpected | No | dns monitors: values the answer must include (an address, a host name, an MX host, a TXT string); none means any answer will do. | |
| keywordMode | No | keyword monitors: 'contains' (default) is down when the keyword is missing, 'absent' when it appears (e.g. 'Error' or 'Out of stock'). | |
| graceSeconds | No | heartbeat monitors: how late a call may be before it is down: 60, 300 (default), 900, 1800, 3600 or 21600. | |
| dnsRecordType | No | dns monitors: the record type to look up (A by default). | |
| sslExpiryDays | No | HTTPS: warn this many days before the certificate expires: 0 (off), 3, 7, 14 (default) or 30. | |
| emailSelectors | No | email monitors: DKIM selectors to watch, the s= of a sent message's DKIM-Signature header (selector1, google, k1). On create they are tried with the usual ones; only those that answer with a key are kept. Leave it out unless the person names one. | |
| expectedStatus | No | HTTP codes that count as up: '200-399' by default; codes, ranges and '2xx' separated by commas ('200,401'). | |
| timeoutSeconds | No | Give up after this many seconds: 5, 10, 15, 30 (default), 45 or 60. | |
| alertOnRecovery | No | Send an alert when it is back up, with how long it was down (default true). | |
| followRedirects | No | Follow redirects, up to five (default true); false counts a 3xx against expectedStatus. | |
| intervalSeconds | No | How often, in seconds: 30, 60, 120, 300, 600, 900, 1800 or 3600; a heartbeat also 21600, 43200 or 86400, matching how often its job runs (86400 for nightly). Never faster than the plan allows (the error names what it allows). Leave it out unless the person names a speed: the default is every minute, or the plan's fastest when that is slower, and a day for a heartbeat. 1,000 checks use 1 credit: every minute is about 44 credits a month, 30 seconds about 87, 5 minutes about 9. | |
| slowThresholdMs | No | Alert when three checks in a row take longer than this many milliseconds (100 to 60000); 0 (default) is off. | |
| domainExpiryDays | No | Warn this many days before the domain's registration expires: 0 (off), 7, 14, 30 (default) or 60. Checked once a day where the registry offers it. | |
| alertAfterSeconds | No | Hold the down alert until it has been down this long: 0 (default, as soon as a failure is confirmed), 60, 120, 300, 600, 900, 1800 or 3600. | |
| remindEverySeconds | No | Repeat the down alert while it stays down: 0 (default, never), 900, 1800, 3600, 10800, 21600 or 86400. | |
| keywordCaseSensitive | No | keyword monitors: match upper and lower case exactly (default false). |