Operational Diagnostics Reports
Saturation Marker Report
Compute a saturation percentage from used and capacity values and classify the fill level.
Saturation Marker Report
saturation_marker.lua
local used =
local capacity = 100
local percent = used * 100 // capacity
local sat_status = "clear"
if percent >= 90 then
sat_status = "saturated"
elseif percent >= 70 then
sat_status = "warm"
end
print("used=" .. used .. " percent=" .. percent .. " status=" .. sat_status)
local used =
local capacity = 100
local percent = used * 100 // capacity
local sat_status = "clear"
if percent >= 90 then
sat_status = "saturated"
elseif percent >= 70 then
sat_status = "warm"
end
print("used=" .. used .. " percent=" .. percent .. " status=" .. sat_status)
local used =
local capacity = 100
local percent = used * 100 // capacity
local sat_status = "clear"
if percent >= 90 then
sat_status = "saturated"
elseif percent >= 70 then
sat_status = "warm"
end
print("used=" .. used .. " percent=" .. percent .. " status=" .. sat_status)
saturation marker
A saturation marker converts raw usage into a percentage label that signals capacity pressure.