Operational Diagnostics Reports
Resource Drift Report
Compare current resource usage with the planned baseline and label the drift.
Resource Drift Report
ResourceDrift.kt
fun main() {
val current =
val baseline = 100
val drift = current - baseline
var driftStatus = "normal"
if (drift >= 25) {
driftStatus = "high"
} else if (drift >= 10) {
driftStatus = "elevated"
}
println("current=$current drift=$drift status=$driftStatus")
}
fun main() {
val current =
val baseline = 100
val drift = current - baseline
var driftStatus = "normal"
if (drift >= 25) {
driftStatus = "high"
} else if (drift >= 10) {
driftStatus = "elevated"
}
println("current=$current drift=$drift status=$driftStatus")
}
fun main() {
val current =
val baseline = 100
val drift = current - baseline
var driftStatus = "normal"
if (drift >= 25) {
driftStatus = "high"
} else if (drift >= 10) {
driftStatus = "elevated"
}
println("current=$current drift=$drift status=$driftStatus")
}
drift report
Resource drift reports turn fixed capacity readings into small labels that are easy to trace.