Operational Diagnostics Reports
Resource Drift Report
Compare a current resource reading with a fixed baseline and label the drift.
Resource Drift Report
resource_drift.js
const current = 112;
const baseline = 100;
const drift = current - baseline;
let driftStatus = "normal";
if (drift >= 25) {
driftStatus = "high";
} else if (drift >= 8) {
driftStatus = "elevated";
}
console.log(`current=${current} drift=${drift} status=${driftStatus}`);
drift signal
Resource drift is the difference between a current reading and a stable baseline.