Overview
Create a new heartbeat monitor to track the uptime and response time of HTTP endpoints. Heartbeat monitors are perfect for simple uptime checks without requiring complex scripts.Request Examples
Response Example
Configuration Options
Basic Settings
Basic Settings
Required Fields:
name
(string): Display name for the heartbeaturl
(string): Target URL to monitormethod
(string): HTTP method (GET, POST, PUT, DELETE, HEAD, PATCH)
activated
(boolean): Whether the heartbeat is active (default: true)muted
(boolean): Whether alerts are muted (default: false)frequency
(integer): Check frequency in minutes (1-1440)locations
(array): Monitoring locationstags
(array): Tags for organization
Request Configuration
Request Configuration
Headers:Query Parameters:Request Body (for POST/PUT):
body
(string): Request body contentbodyType
(string): FORM_DATA, JSON, or RAW
Response Validation
Response Validation
Status Code:
expectStatus
(integer): Expected HTTP status code (default: 200)
responseTimeLimit
(integer): Maximum response time in milliseconds
expectText
(string): Text that must be present in response body
followRedirects
(boolean): Whether to follow HTTP redirects (default: true)
Alert Settings
Alert Settings
Alert Timing:
alertAfter
(integer): Number of time units to wait before alertingalertTimeUnit
(string): MINUTES, HOURS, or RUNS
sslCheckEnabled
(boolean): Monitor SSL certificate expirationsslAlertThreshold
(integer): Days before expiration to alert
Code Examples
Best Practices
Frequency Selection
Frequency Selection
Choose appropriate check frequencies based on criticality:
- Critical services: 1-2 minutes
- Important services: 5-10 minutes
- Non-critical services: 15-30 minutes
- Development/staging: 30+ minutes
Response Validation
Response Validation
- Use status code validation for basic uptime
- Add text validation for health endpoints
- Set realistic response time limits
- Consider geographic latency in limits
Alert Configuration
Alert Configuration
- Set alertAfter based on acceptable downtime
- Use MINUTES for critical services
- Use RUNS for flaky services
- Enable SSL monitoring for HTTPS endpoints
Request Headers
Request Headers
- Include User-Agent for identification
- Add authentication headers for protected endpoints
- Use appropriate Content-Type for POST requests
- Consider rate limiting headers if needed
Heartbeat monitors are ideal for simple uptime checking. For more complex scenarios involving user interactions or multi-step workflows, consider using browser checks instead.