Heartbeat monitor
Vercel Cron example
Use this when the job is “tell me it finished at all.”
await fetch(`${process.env.LUOTA_API_BASE_URL}/v1/monitors/${process.env.LUOTA_MONITOR_ID}/ping`, {
method: "POST",
headers: {
"content-type": "application/json",
"x-watchflow-key": process.env.LUOTA_INGEST_TOKEN!
},
body: JSON.stringify({
occurredAt: new Date().toISOString(),
payload: { source: "vercel-cron" }
})
});