The integration helpers still use
CheckIn, checkIn, and check_in in code
for compatibility with existing applications.Cron process monitor events
To notify AppSignal that a cron job has finished successfully, use thecron helper function, passing the name of the cron process monitor as an argument.
cron helper function many times in a short period, as the helper will only send a finish event to AppSignal at most once every ten seconds.
Monitoring the job’s duration
To monitor the duration of a cron job, you can use thecron helper function with a block or function that contains the code you want to monitor. This will send events to AppSignal both when the job starts and when it finishes.
Heartbeat process monitor events
To send a heartbeat process monitor event to AppSignal, use theheartbeat helper function, passing the name of the heartbeat process monitor as an argument.
It is safe to call heartbeat many times, as the helper will only send a heartbeat event to AppSignal at most every ten seconds.
Sending heartbeats continuously
To send heartbeat process monitors continuously, you can pass the{ continuous: true } option to the heartbeat helper function. This is useful to monitor the lifetime of the process itself. The helper will send a heartbeat event to AppSignal every thirty seconds.