Operational Diagnostics Reports
Dependency Health Report
Summarize dependency health from total and failed dependency counts.
Dependency Health Report
dependency_health.js
const failedDeps = 1;
const totalDeps = 5;
const healthyDeps = totalDeps - failedDeps;
let dependencyStatus = "red";
if (failedDeps === 0) {
dependencyStatus = "green";
} else if (failedDeps <= 1) {
dependencyStatus = "watch";
}
console.log(`failed=${failedDeps} healthy=${healthyDeps} status=${dependencyStatus}`);
dependency health
Dependency health reports keep the failed count and healthy count visible before assigning a status label.