Operational Diagnostics Reports
Dependency Health Report
Score dependency health from failed and total counts and assign a status label.
Dependency Health Report
dependency_health.pl
use strict;
use warnings;
my $failed_deps = ;
my $total_deps = 5;
my $healthy_deps = $total_deps - $failed_deps;
my $dep_status = "green";
if ($failed_deps >= 3) {
$dep_status = "red";
} elsif ($failed_deps > 0) {
$dep_status = "watch";
}
print "failed=$failed_deps healthy=$healthy_deps status=$dep_status\n";
use strict;
use warnings;
my $failed_deps = ;
my $total_deps = 5;
my $healthy_deps = $total_deps - $failed_deps;
my $dep_status = "green";
if ($failed_deps >= 3) {
$dep_status = "red";
} elsif ($failed_deps > 0) {
$dep_status = "watch";
}
print "failed=$failed_deps healthy=$healthy_deps status=$dep_status\n";
use strict;
use warnings;
my $failed_deps = ;
my $total_deps = 5;
my $healthy_deps = $total_deps - $failed_deps;
my $dep_status = "green";
if ($failed_deps >= 3) {
$dep_status = "red";
} elsif ($failed_deps > 0) {
$dep_status = "watch";
}
print "failed=$failed_deps healthy=$healthy_deps status=$dep_status\n";
dependency health
Dependency health scoring reduces a set of component checks to a single status label.