Operational Reliability Reports
Service Window Reliability Report
Label a service window from failed checks and available open minutes.
readiness label
A reliability report turns a small check summary into a label that an operator can scan before a service window opens.
Service Window Reliability Report
service_window_reliability_report.go
Replay: real traced execution (multi-file project)
package main
import "fmt"
func main() {
var failedChecks = 1
openMinutes := 45
status := "blocked"
if failedChecks == 0 && openMinutes >= 30 {
status = "ready"
} else if failedChecks <= 1 {
status = "watch"
}
fmt.Printf("failed=%d open=%d status=%s\n", failedChecks, openMinutes, status)
}
package main
import "fmt"
func main() {
var failedChecks = 0
openMinutes := 45
status := "blocked"
if failedChecks == 0 && openMinutes >= 30 {
status = "ready"
} else if failedChecks <= 1 {
status = "watch"
}
fmt.Printf("failed=%d open=%d status=%s\n", failedChecks, openMinutes, status)
}
package main
import "fmt"
func main() {
var failedChecks = 3
openMinutes := 45
status := "blocked"
if failedChecks == 0 && openMinutes >= 30 {
status = "ready"
} else if failedChecks <= 1 {
status = "watch"
}
fmt.Printf("failed=%d open=%d status=%s\n", failedChecks, openMinutes, status)
}
failedChecks ← 1, openMinutes ← 45, status ← "blocked"
5func main() {6 var failedChecks→ 1 = 1 //@failedChecks=0, 37 openMinutes→ 45 := 458 status→ "blocked" := "blocked"status ← "watch"
11 status = "ready"12} else if failedChecks1 <= 1 {13 status→ "watch" = "watch"14}fmt.Printf("failed=%d open=%d status=%s ", failedChecks, openMinutes, …
16 fmt.Printf("failed=%d open=%d status=%s\n", failedChecks1, openMinutes45, status"watch")17}outputfailed=1 open=45 status=watch
failedChecks ← 0, openMinutes ← 45, status ← "blocked"
5func main() {6 var failedChecks→ 0 = 07 openMinutes→ 45 := 458 status→ "blocked" := "blocked"status ← "ready"
10if failedChecks0 == 0 && openMinutes45 >= 30 {11 status→ "ready" = "ready"12} else if failedChecks <= 1 {fmt.Printf("failed=%d open=%d status=%s ", failedChecks, openMinutes, …
16 fmt.Printf("failed=%d open=%d status=%s\n", failedChecks0, openMinutes45, status"ready")17}outputfailed=0 open=45 status=ready
failedChecks ← 3, openMinutes ← 45, status ← "blocked"
5func main() {6 var failedChecks→ 3 = 37 openMinutes→ 45 := 458 status→ "blocked" := "blocked"910 if failedChecks == 0 && openMinutes >= 30 {11 status = "ready"12 } else if failedChecks <= 1 {13 status = "watch"14 }1516 fmt.Printf("failed=%d open=%d status=%s\n", failedChecks3, openMinutes45, status"blocked")17}outputfailed=3 open=45 status=blocked