Operational Reliability Reports
Service Window Reliability Report
Summarize whether a service window is ready, watched, or blocked.
reliability report
A reliability report can turn fixed operational inputs into a scalar status that is easy to trace and compare.
Service Window Reliability Report
service_window.ts
Replay: real traced execution (multi-file project)
type ServiceWindowReport = {
failedChecks: number;
openMinutes: number;
status: string;
};
const failedChecks: number = 1;
const openMinutes: number = 45;
let reportStatus: string = "blocked";
if (failedChecks === 0 && openMinutes >= 30) {
reportStatus = "ready";
} else if (failedChecks <= 1) {
reportStatus = "watch";
}
const report: ServiceWindowReport = { failedChecks, openMinutes, status: reportStatus };
console.log(`failed=${report.failedChecks} open=${report.openMinutes} status=${report.status}`);
type ServiceWindowReport = {
failedChecks: number;
openMinutes: number;
status: string;
};
const failedChecks: number = 0;
const openMinutes: number = 45;
let reportStatus: string = "blocked";
if (failedChecks === 0 && openMinutes >= 30) {
reportStatus = "ready";
} else if (failedChecks <= 1) {
reportStatus = "watch";
}
const report: ServiceWindowReport = { failedChecks, openMinutes, status: reportStatus };
console.log(`failed=${report.failedChecks} open=${report.openMinutes} status=${report.status}`);
type ServiceWindowReport = {
failedChecks: number;
openMinutes: number;
status: string;
};
const failedChecks: number = 3;
const openMinutes: number = 45;
let reportStatus: string = "blocked";
if (failedChecks === 0 && openMinutes >= 30) {
reportStatus = "ready";
} else if (failedChecks <= 1) {
reportStatus = "watch";
}
const report: ServiceWindowReport = { failedChecks, openMinutes, status: reportStatus };
console.log(`failed=${report.failedChecks} open=${report.openMinutes} status=${report.status}`);
failedChecks ← 1, openMinutes ← 45, reportStatus ← blocked
4 status: string;5};67const failedChecks→ 1: number = 1; //@failedChecks=0, 38const openMinutes→ 45: number = 45;9let reportStatus→ blocked: string = "blocked";if (failedChecks <= 1)
12 reportStatus = "ready";13} else if (failedChecks1 <= 1) {14 reportStatus = "watch";15}report ← [object Object]
14 reportStatus = "watch";15}1617const report→ [object Object]: ServiceWindowReport = { failedChecks, openMinutes, status: reportStatuswatch };18console.log(`failed=${report.failedChecks1} open=${report.openMinutes45} status=${report.statuswatch}`);outputfailed=1 open=45 status=watch
failedChecks ← 0, openMinutes ← 45, reportStatus ← blocked
4 status: string;5};67const failedChecks→ 0: number = 0;8const openMinutes→ 45: number = 45;9let reportStatus→ blocked: string = "blocked";if (failedChecks === 0 && openMinutes >= 30)
8const openMinutes: number = 45;9let reportStatus: string = "blocked";1011if (failedChecks0 === 0 && openMinutes45 >= 30) {12 reportStatus = "ready";13} else if (failedChecks <= 1) {report ← [object Object]
14 reportStatus = "watch";15}1617const report→ [object Object]: ServiceWindowReport = { failedChecks, openMinutes, status: reportStatusready };18console.log(`failed=${report.failedChecks0} open=${report.openMinutes45} status=${report.statusready}`);outputfailed=0 open=45 status=ready
failedChecks ← 3, openMinutes ← 45, reportStatus ← blocked, report ← [object Object]
4 status: string;5};67const failedChecks→ 3: number = 3;8const openMinutes→ 45: number = 45;9let reportStatus→ blocked: string = "blocked";1011if (failedChecks === 0 && openMinutes >= 30) {12 reportStatus = "ready";13} else if (failedChecks <= 1) {14 reportStatus = "watch";15}1617const report→ [object Object]: ServiceWindowReport = { failedChecks, openMinutes, status: reportStatusblocked };18console.log(`failed=${report.failedChecks3} open=${report.openMinutes45} status=${report.statusblocked}`);outputfailed=3 open=45 status=blocked