Get Push Example
getPushExampleReturns ready-to-run code for cron jobs or scripts to report to a created Uptime Kuma push monitor, with its push URL and interval filled in.
Instructions
Returns ready-to-run code that reports to a push monitor every interval, from Uptime Kuma's own samples, with the monitor's push URL and interval filled in. Use it after creating a push monitor, for the user's cron job or script. The push URL holds the monitor's token, a credential: it reads "***" (and the code will not work) unless includeSecrets is set.
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": {
"monitorID": "<monitorID>"
},
"name": "getPushExample"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | One of bash-curl, csharp, docker, go, java, javascript-fetch, php, powershell, python, typescript-fetch (default: bash-curl) | |
| monitorID | Yes | The push monitor. Find IDs with listMonitors. | |
| includeSecrets | No | Return credentials in full instead of "***"; they then stay in the transcript. Default: false, or UPTIME_KUMA_INCLUDE_SECRETS. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| note | Yes | Where the host in the URL came from | |
| pushURL | Yes | ||
| interval | Yes | Seconds between pushes, from the monitor | |
| language | Yes | ||
| monitorID | Yes |