dowwntime 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +17 -13
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +17 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -28424,20 +28424,24 @@ const run = async (options) => {
|
|
|
28424
28424
|
if (filtered.length === 0) return null;
|
|
28425
28425
|
return filtered.filter((item) => item.status === "degraded").length / filtered.length;
|
|
28426
28426
|
};
|
|
28427
|
+
const relDegraded60m = getRelativeDegraded(startOfPast60m);
|
|
28428
|
+
const relDegraded24h = getRelativeDegraded(startOfPast24h);
|
|
28429
|
+
const relDegraded7d = getRelativeDegraded(startOfPast7d);
|
|
28430
|
+
const relDegraded30d = getRelativeDegraded(startOfPast30d);
|
|
28427
28431
|
return {
|
|
28428
|
-
path: path$4
|
|
28429
|
-
relDowntime60m,
|
|
28430
|
-
|
|
28431
|
-
avgDuration60m,
|
|
28432
|
-
relDowntime24h,
|
|
28433
|
-
|
|
28434
|
-
avgDuration24h,
|
|
28435
|
-
relDowntime7d,
|
|
28436
|
-
|
|
28437
|
-
avgDuration7d,
|
|
28438
|
-
relDowntime30d,
|
|
28439
|
-
|
|
28440
|
-
avgDuration30d
|
|
28432
|
+
path: `${path$4} - ${history[history.length - 1]?.status ?? "unknown"} - ${history[history.length - 1]?.durationMs ?? 0}ms`,
|
|
28433
|
+
down60m: relDowntime60m,
|
|
28434
|
+
degr60m: relDegraded60m,
|
|
28435
|
+
dur60m: avgDuration60m,
|
|
28436
|
+
down24h: relDowntime24h,
|
|
28437
|
+
degr24h: relDegraded24h,
|
|
28438
|
+
dur24h: avgDuration24h,
|
|
28439
|
+
down7d: relDowntime7d,
|
|
28440
|
+
degr7d: relDegraded7d,
|
|
28441
|
+
dur7d: avgDuration7d,
|
|
28442
|
+
down30d: relDowntime30d,
|
|
28443
|
+
degr30d: relDegraded30d,
|
|
28444
|
+
dur30d: avgDuration30d
|
|
28441
28445
|
};
|
|
28442
28446
|
}));
|
|
28443
28447
|
console.table(reports);
|