feat: heartbeat monitors pinged by cron jobs and scripts
A heartbeat monitor has a secret ping URL instead of a target and regions. Jobs call it with GET, HEAD or POST after each run, or /fail with an optional message. When no ping arrives within the interval plus a grace period, a failure is recorded and evaluated like a checker result, so confirmations, maintenance and notifications apply. One API replica at a time checks deadlines. The URL is shown only to members who may edit the monitor, since it can report the job healthy. Closes #27 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
04eff67e56
commit
5a76702dba
14 files changed
+1241
-587
No files matched your search
@@ -179,6 +179,17 @@
|
||||
fs.hidden = !active;
|
||||
fs.disabled = !active;
|
||||
}
|
||||
// [data-hide-for] holds fields a type does without, e.g. heartbeats
|
||||
// have neither target nor regions.
|
||||
for (const el of sel.form.querySelectorAll("[data-hide-for]")) {
|
||||
const hide = el.dataset.hideFor.split(" ").includes(sel.value);
|
||||
el.hidden = hide;
|
||||
if (el.tagName === "FIELDSET") el.disabled = hide;
|
||||
for (const input of el.querySelectorAll("input[required], input[data-required]")) {
|
||||
input.required = !hide;
|
||||
input.dataset.required = "";
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
document.addEventListener("change", async (ev) => {
|
||||
|
||||
Reference in new issue
Block a user