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
@@ -84,6 +84,7 @@ func (s *Server) Mount(r gin.IRouter) {
|
||||
// Agents authenticate with tokens and never carry cookies, so they skip
|
||||
// the session and CSRF middleware.
|
||||
s.mountAgentAPI(r)
|
||||
s.mountHeartbeats(r)
|
||||
|
||||
g := r.Group("/", s.sessions.Load(), s.localize(), auth.CSRF(), s.audit())
|
||||
|
||||
|
||||
Reference in new issue
Block a user