Files
2024-07-25 10:26:06 -04:00

15 lines
417 B
Lua

local hs = {}
if (obj.status.errMsg == nil or obj.status.errMsg == "") and obj.status.value ~= nil then
hs.status = "Healthy"
hs.message = "KeptnMetric is healthy"
return hs
end
if obj.status.errMsg ~= nil and obj.status.errMsg ~= "" then
hs.status = "Degraded"
hs.message = "KeptnMetric is degraded"
return hs
end
hs.status = "Progressing"
hs.message = "KeptnMetric is progressing"
return hs