Update healthMatrix.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Alexa Amundson
2025-11-21 13:30:58 -06:00
committed by GitHub
parent db3719f2e5
commit fed3b1b719

View File

@@ -45,8 +45,12 @@ async function checkService(service: ServiceConfig): Promise<HealthResult> {
}
function printMatrix(results: HealthResult[]): void {
console.log("service status url latency");
console.log("------------------------------------------------------");
console.log(
`${"service".padEnd(10)} ${"status".padEnd(8)} ${"url".padEnd(30)} latency`
);
console.log(
`${"-".repeat(10)} ${"-".repeat(8)} ${"-".repeat(30)} ${"-".repeat(7)}`
);
for (const result of results) {
const latency = result.latencyMs !== null ? `${result.latencyMs}ms` : "--";