Operational Remediation Reports
Dependency Fallback Remediation Report
Use the count of healthy dependencies to choose a primary, fallback, or cache route.
Dependency Fallback Remediation Report
dependency_fallback_remediation_report.c
#include <stdio.h>
int main(void) {
int healthyDeps = ;
int totalDeps = 3;
int degraded = totalDeps - healthyDeps;
const char *route = "primary";
if (healthyDeps < totalDeps) {
route = "fallback";
}
if (healthyDeps == 0) {
route = "cache";
}
printf("healthy=%d\n", healthyDeps);
printf("degraded=%d\n", degraded);
printf("route=%s\n", route);
return 0;
}
#include <stdio.h>
int main(void) {
int healthyDeps = ;
int totalDeps = 3;
int degraded = totalDeps - healthyDeps;
const char *route = "primary";
if (healthyDeps < totalDeps) {
route = "fallback";
}
if (healthyDeps == 0) {
route = "cache";
}
printf("healthy=%d\n", healthyDeps);
printf("degraded=%d\n", degraded);
printf("route=%s\n", route);
return 0;
}
#include <stdio.h>
int main(void) {
int healthyDeps = ;
int totalDeps = 3;
int degraded = totalDeps - healthyDeps;
const char *route = "primary";
if (healthyDeps < totalDeps) {
route = "fallback";
}
if (healthyDeps == 0) {
route = "cache";
}
printf("healthy=%d\n", healthyDeps);
printf("degraded=%d\n", degraded);
printf("route=%s\n", route);
return 0;
}
healthy count
The healthy dependency count is the controlled selector that drives the routing decision.
route fallback
The route degrades from primary to fallback to cache as healthy dependencies drop away.