Operational Reliability Reports
Capacity Reserve Reliability Report
Calculate capacity reserve and label whether the reserve is stable, watched, or tight.
Capacity Reserve Reliability Report
capacity_reserve.ts
type CapacityReport = {
demand: number;
reserve: number;
status: string;
};
const demand: number = ;
const capacity: number = 100;
const reserve: number = capacity - demand;
let reportStatus: string = "tight";
if (reserve >= 20) {
reportStatus = "stable";
} else if (reserve >= 10) {
reportStatus = "watch";
}
const report: CapacityReport = { demand, reserve, status: reportStatus };
console.log(`demand=${report.demand} reserve=${report.reserve} status=${report.status}`);
type CapacityReport = {
demand: number;
reserve: number;
status: string;
};
const demand: number = ;
const capacity: number = 100;
const reserve: number = capacity - demand;
let reportStatus: string = "tight";
if (reserve >= 20) {
reportStatus = "stable";
} else if (reserve >= 10) {
reportStatus = "watch";
}
const report: CapacityReport = { demand, reserve, status: reportStatus };
console.log(`demand=${report.demand} reserve=${report.reserve} status=${report.status}`);
type CapacityReport = {
demand: number;
reserve: number;
status: string;
};
const demand: number = ;
const capacity: number = 100;
const reserve: number = capacity - demand;
let reportStatus: string = "tight";
if (reserve >= 20) {
reportStatus = "stable";
} else if (reserve >= 10) {
reportStatus = "watch";
}
const report: CapacityReport = { demand, reserve, status: reportStatus };
console.log(`demand=${report.demand} reserve=${report.reserve} status=${report.status}`);
reserve report
Fixed capacity and demand values can produce a replay-friendly reserve label before any scheduler acts on it.