Operational Reliability Reports
Capacity Reserve Reliability Report
Calculate capacity reserve and label whether the reserve is stable, watched, or tight.
Capacity Reserve Reliability Report
CapacityReserve.kt
fun main() {
val demand =
val capacity = 100
val reserve = capacity - demand
var reserveStatus = "tight"
if (reserve >= 20) {
reserveStatus = "stable"
} else if (reserve >= 10) {
reserveStatus = "watch"
}
println("demand=$demand reserve=$reserve status=$reserveStatus")
}
fun main() {
val demand =
val capacity = 100
val reserve = capacity - demand
var reserveStatus = "tight"
if (reserve >= 20) {
reserveStatus = "stable"
} else if (reserve >= 10) {
reserveStatus = "watch"
}
println("demand=$demand reserve=$reserve status=$reserveStatus")
}
fun main() {
val demand =
val capacity = 100
val reserve = capacity - demand
var reserveStatus = "tight"
if (reserve >= 20) {
reserveStatus = "stable"
} else if (reserve >= 10) {
reserveStatus = "watch"
}
println("demand=$demand reserve=$reserve status=$reserveStatus")
}
reserve report
Fixed capacity and demand values can produce a replay-friendly reserve label before any scheduler acts on it.