Operational Remediation Reports
Capacity Shift Report
Pick an Action
Capacity remediation reports convert reserve into a direct action. This program chooses hold, shift, or shed from a selected reserve.
Program
Play the program to choose reserve and watch the operational action change.
capacity_shift_report.rs
fn main() {
let reserve = ;
let action = if reserve >= 12 {
"hold"
} else if reserve >= 6 {
"shift"
} else {
"shed"
};
let line = format!("reserve={reserve} {action}");
println!("{line}");
}
fn main() {
let reserve = ;
let action = if reserve >= 12 {
"hold"
} else if reserve >= 6 {
"shift"
} else {
"shed"
};
let line = format!("reserve={reserve} {action}");
println!("{line}");
}
fn main() {
let reserve = ;
let action = if reserve >= 12 {
"hold"
} else if reserve >= 6 {
"shift"
} else {
"shed"
};
let line = format!("reserve={reserve} {action}");
println!("{line}");
}
reserve action
The report maps reserve to one of three operator actions.
hold
Large reserve keeps the current allocation in place.
shed
Low reserve makes the remediation explicit instead of hiding it in prose.