Sign in

Add heartbeat

documented

Create a new heartbeat definition.

POST /v2/heartbeatsHeartbeatsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.opsgenie.com/v2/heartbeats" \
  -X POST \
  -H "Authorization: GenieKey {{OPSGENIE_API_KEY}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"name": "{{$name}}", "description": "{{$description}}", "interval": {{$interval}}, "intervalUnit": "{{$intervalUnit}}", "enabled": {{$enabled}}, "ownerTeam": {"id": "{{$ownerTeamId}}", "name": "{{$ownerTeamName}}"}, "alertMessage": "{{$alertMessage}}" }'
Add heartbeat · Opsgenie · OpenIntegrations