Create heartbeats with a known URL

I’d love a way to create heartbeats with the API in a way that would allow the URL for the heartbeat to be known at the time of the checkly deployment (so it could be referenced in the same pull request - one PR to create the recurring job, the heartbeat check, and the call to the created heartbeat.). I don’t know exactly how that would work - maybe the URL could be supplied by the caller in a sufficiently parameterized way (yet still be “per environment”)

new HeartbeatCheck(getChecklyId('recurring-job-emails'), {
  name: getChecklyName('Outfitter Daily Reservation Email Job Heartbeat Check'),
  activated: true,
  period: 24,
  periodUnit: 'hours',
  grace: 1,
  graceUnit: 'hours',
  url: 'https://{myaccountname}.checklyhq.com/{heartbeatname}?tags={tags}'
  tags: ['heartbeat',CHECK_ENV.ENV_NAME]
})

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board

💡 Feature Request

Tags

Heartbeat Checks

Date

Over 1 year ago

Author

Scott Colestock

Subscribe to post

Get notified by email when there are changes.