Get Heartbeats
getHeartbeatsRetrieve historical heartbeat data for a specific monitor, including response times and status changes. Analyze uptime patterns over time by specifying maxHeartbeats up to 100.
Instructions
Retrieves historical heartbeat data for a specific monitor (response times, status changes over time). Use this for analyzing patterns or history for one monitor. By default returns only the most recent heartbeat; set maxHeartbeats (up to 100) for historical analysis. Keep maxHeartbeats ≤10 unless user requests more. Credentials embedded in a status message URL (user:pass@host) read "***" unless includeSecrets is set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| monitorID | Yes | The ID of the monitor to get heartbeats for | |
| maxHeartbeats | No | If set, returns the most recent X heartbeats (up to 100). If unset, returns only the most recent heartbeat (default: 1) | |
| includeSecrets | No | Return credentials in full instead of "***". Off by default: this output is persisted in conversation transcripts and logs. Can also be enabled globally with UPTIME_KUMA_INCLUDE_SECRETS=true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| monitorID | Yes | ||
| heartbeats | Yes |