Operational Diagnostics Reports
Dependency Health Report
Score dependency health from failed and total counts and assign a status label.
Dependency Health Report
dependency_health.lua
local failed_deps =
local total_deps = 5
local healthy_deps = total_deps - failed_deps
local dep_status = "green"
if failed_deps >= 3 then
dep_status = "red"
elseif failed_deps > 0 then
dep_status = "watch"
end
print("failed=" .. failed_deps .. " healthy=" .. healthy_deps .. " status=" .. dep_status)
local failed_deps =
local total_deps = 5
local healthy_deps = total_deps - failed_deps
local dep_status = "green"
if failed_deps >= 3 then
dep_status = "red"
elseif failed_deps > 0 then
dep_status = "watch"
end
print("failed=" .. failed_deps .. " healthy=" .. healthy_deps .. " status=" .. dep_status)
local failed_deps =
local total_deps = 5
local healthy_deps = total_deps - failed_deps
local dep_status = "green"
if failed_deps >= 3 then
dep_status = "red"
elseif failed_deps > 0 then
dep_status = "watch"
end
print("failed=" .. failed_deps .. " healthy=" .. healthy_deps .. " status=" .. dep_status)
dependency health
Dependency health scoring reduces a set of component checks to a single status label.