Skip to main content
Heartbeat monitors require an expected interval and grace period. DevHelm generates a unique ping URL that your service calls on each successful run.
Define this in code. YAML format · Terraform

Config fields

The total allowed gap between pings is expectedInterval + gracePeriod. For a job that runs hourly with a 10-minute grace period, set expectedInterval: 3600 and gracePeriod: 600.

Ping URL

When you create a heartbeat monitor, DevHelm generates a unique pingUrl. The URL is available on the monitor response object. Your service should call this URL via GET or POST on each successful run.

Sending payload data

You can include a JSON body with your ping. This is useful for reporting job metadata:
Use the heartbeat_payload_contains assertion to validate payload contents.

Assertions

Examples

Cron job (hourly)

With payload validation

Next steps

Heartbeat overview

When to use heartbeat monitors.

Cron job guide

Patterns for background job monitoring.