Compare spent error budget with the allowed budget.

Error Budget Reliability Report

ErrorBudgetReliabilityReport.scala
object Main {
  def main(args: Array[String]): Unit = {
    val spent = 
    val budget = 5
    var status = "ok"

    if (spent >= budget - 1) {
      status = "watch"
    }
    if (spent > budget) {
      status = "halt"
    }

    println("spent=" + spent)
    println("budget=" + budget)
    println("status=" + status)
  }
}
object Main {
  def main(args: Array[String]): Unit = {
    val spent = 
    val budget = 5
    var status = "ok"

    if (spent >= budget - 1) {
      status = "watch"
    }
    if (spent > budget) {
      status = "halt"
    }

    println("spent=" + spent)
    println("budget=" + budget)
    println("status=" + status)
  }
}
object Main {
  def main(args: Array[String]): Unit = {
    val spent = 
    val budget = 5
    var status = "ok"

    if (spent >= budget - 1) {
      status = "watch"
    }
    if (spent > budget) {
      status = "halt"
    }

    println("spent=" + spent)
    println("budget=" + budget)
    println("status=" + status)
  }
}
error-budget-report An error-budget report keeps the threshold and outcome label in the same trace.