Operational Reliability Reports
Service Window Reliability Report
Summarize whether an open service window is ready, watched, or blocked.
Service Window Reliability Report
ServiceWindowReliabilityReport.scala
object Main {
def main(args: Array[String]): Unit = {
val failedChecks =
val openMinutes = 45
var status = "ready"
if (failedChecks > 0 && openMinutes > 30) {
status = "watch"
}
if (failedChecks >= 3) {
status = "blocked"
}
println("failed=" + failedChecks)
println("open=" + openMinutes)
println("status=" + status)
}
}
object Main {
def main(args: Array[String]): Unit = {
val failedChecks =
val openMinutes = 45
var status = "ready"
if (failedChecks > 0 && openMinutes > 30) {
status = "watch"
}
if (failedChecks >= 3) {
status = "blocked"
}
println("failed=" + failedChecks)
println("open=" + openMinutes)
println("status=" + status)
}
}
object Main {
def main(args: Array[String]): Unit = {
val failedChecks =
val openMinutes = 45
var status = "ready"
if (failedChecks > 0 && openMinutes > 30) {
status = "watch"
}
if (failedChecks >= 3) {
status = "blocked"
}
println("failed=" + failedChecks)
println("open=" + openMinutes)
println("status=" + status)
}
}
service-window-report
Operational status can be built from small scalar checks. Later guards can raise the status without hiding the earlier values.