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

This commit is contained in:
2026-09-17 08:20:16 +00:00
parent 590c369d36
commit 09888825a8
4 changed files with 363 additions and 25 deletions
+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 {