Measure resource drift from a baseline and label the deviation level.

Resource Drift Report

resource_drift.lua
local current = 
local baseline = 100
local drift = current - baseline
local drift_status = "normal"

if drift >= 25 then
  drift_status = "high"
elseif drift >= 10 then
  drift_status = "elevated"
end

print("current=" .. current .. " drift=" .. drift .. " status=" .. drift_status)
local current = 
local baseline = 100
local drift = current - baseline
local drift_status = "normal"

if drift >= 25 then
  drift_status = "high"
elseif drift >= 10 then
  drift_status = "elevated"
end

print("current=" .. current .. " drift=" .. drift .. " status=" .. drift_status)
local current = 
local baseline = 100
local drift = current - baseline
local drift_status = "normal"

if drift >= 25 then
  drift_status = "high"
elseif drift >= 10 then
  drift_status = "elevated"
end

print("current=" .. current .. " drift=" .. drift .. " status=" .. drift_status)
resource drift Resource drift tracks how far current usage has moved from a known baseline value.