mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
15 lines
417 B
Lua
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
|