Compare spent error budget with the allowed budget.

Error Budget Reliability Report

error_budget_reliability_report.rb
spent = 
budget = 5
status = "ok"

if spent >= budget - 1
  status = "watch"
end

if spent > budget
  status = "halt"
end

puts "spent=#{spent}"
puts "budget=#{budget}"
puts "status=#{status}"
spent = 
budget = 5
status = "ok"

if spent >= budget - 1
  status = "watch"
end

if spent > budget
  status = "halt"
end

puts "spent=#{spent}"
puts "budget=#{budget}"
puts "status=#{status}"
spent = 
budget = 5
status = "ok"

if spent >= budget - 1
  status = "watch"
end

if spent > budget
  status = "halt"
end

puts "spent=#{spent}"
puts "budget=#{budget}"
puts "status=#{status}"
error-budget-report An error-budget report keeps the threshold and outcome label in the same trace.