feat(monitors): heartbeat token, ping recording and overdue verdict

This commit is contained in:
mrhid6 committed 2026-09-17 08:20:16 +00:00
1 parent 590c369d36
commit 09888825a8
4 files changed
+363 -25

No files matched your search

+2
View File
@@ -92,6 +92,8 @@ type Monitor struct {
// HeartbeatTokenHash is the SHA-256 of the ping token. The token itself is
// shown once, on create or rotate, and never stored.
HeartbeatTokenHash string `bson:"heartbeat_token_hash,omitempty" json:"-"`
// HeartbeatToken is the plaintext token, set only on the create response.
HeartbeatToken string `bson:"-" json:"heartbeat_token,omitempty"`
}
type Incident struct {