Share unavailable() so the Windows sensor logs unavailable transitions

This commit is contained in:
2026-06-02 12:33:23 -04:00
parent 0daf8c2849
commit d149736946
3 changed files with 11 additions and 6 deletions
+10
View File
@@ -0,0 +1,10 @@
package evidence
import "log"
// unavailable builds an Unavailable snapshot and logs the reason. It is shared
// by every platform sensor so an unobservable window is recorded consistently.
func unavailable(reason string) WindowSnapshot {
log.Printf("evidence: %s", reason)
return WindowSnapshot{Health: EvidenceHealth{Available: false, Reason: reason}}
}