Create a heartbeat
create_heartbeatCreate a heartbeat expecting a ping from a cron job or a worker at a regular interval, it opens an incident once the missed or failed pings are confirmed. The job requests its ping_url with GET, HEAD or POST when it succeeds, with /fail appended when it fails. It stays waiting without any incident until its first ping.
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": {
"project_id": "<project_id>",
"name": "<name>",
"display_name": "<display_name>",
"interval": "<interval>",
"grace": "<grace>",
"incident_confirmations": "<incident_confirmations>",
"recovery_confirmations": "<recovery_confirmations>"
},
"name": "create_heartbeat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Heartbeat name | |
| tags | No | Resource tags, made of lowercase letters, numbers, `.`, `_`, `:` and `-`. An organization can have up to 200 tags. | |
| grace | Yes | Time allowed after an expected ping before it counts as missed, in seconds, a whole number of minutes from 1 minute to 7 days | |
| interval | Yes | Expected time between two pings, in seconds, a whole number of minutes from 1 minute to 31 days | |
| project_id | Yes | ID of the project to act on, see whoami | |
| display_name | Yes | Public name of the heartbeat on status pages, defaults to the heartbeat name | |
| incident_confirmations | Yes | Number of uninterrupted missed or failed pings required to create an incident | |
| recovery_confirmations | Yes | Number of uninterrupted successful pings required to resolve an incident |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Heartbeat ID | |
| name | No | Heartbeat name | |
| tags | No | Resource tags, made of lowercase letters, numbers, `.`, `_`, `:` and `-`. An organization can have up to 200 tags. | |
| grace | No | Time allowed after an expected ping before it counts as missed, in seconds, a whole number of minutes from 1 minute to 7 days | |
| paused | No | Whether the heartbeat is currently paused | |
| status | No | Heartbeat current status, `waiting` until its first ping, and until its next ping after an incident is recovered or deleted by hand | |
| interval | No | Expected time between two pings, in seconds, a whole number of minutes from 1 minute to 31 days | |
| ping_url | No | URL to request with GET, HEAD or POST when the job succeeds, add `/fail` to report a failure | |
| created_at | No | Date of creation for the entity | |
| project_id | No | Parent project ID | |
| updated_at | No | Date of last update for the entity | |
| display_name | No | Public name of the heartbeat on status pages, defaults to the heartbeat name | |
| last_pinged_at | No | Date of the last successful or failed ping with a 1 minute accuracy | |
| incident_confirmations | No | Number of uninterrupted missed or failed pings required to create an incident | |
| recovery_confirmations | No | Number of uninterrupted successful pings required to resolve an incident |