Operational Remediation Reports
Rollback Action Report
Choose the Next Step
A remediation report can map a failed-check count to a concrete action without touching files, packages, or host state.
Program
Play the script to choose the failed check count and inspect the remediation action.
rollback_action_report.R
failed_checks <-
action <- if (failed_checks == 0) "monitor" else if (failed_checks <= 2) "rollback" else "escalate"
line <- paste0('failed=', failed_checks, ' ', action)
cat(line, "\n", sep = "")
failed_checks <-
action <- if (failed_checks == 0) "monitor" else if (failed_checks <= 2) "rollback" else "escalate"
line <- paste0('failed=', failed_checks, ' ', action)
cat(line, "\n", sep = "")
failed_checks <-
action <- if (failed_checks == 0) "monitor" else if (failed_checks <= 2) "rollback" else "escalate"
line <- paste0('failed=', failed_checks, ' ', action)
cat(line, "\n", sep = "")
action label
The `action` string carries the remediation decision as ordinary data.
tiered decision
The nested `if` expression separates monitor, rollback, and escalation cases.
report row
`paste0` keeps the raw failure count beside the selected action.