This commit is contained in:
Alex Holliday committed 2025-11-27 19:39:26 +00:00
1 parent ee04ac2b98
commit 686b96d4b3
5 files changed
+50 -6

No files matched your search

@@ -69,6 +69,7 @@ const UptimeDetailsPage = () => {
}
const stats = response?.data?.stats || null;
console.log(stats);
const avgResponseTime = stats?.avgResponseTime || 0;
const maxResponseTime = stats?.maxResponseTime || 0;
@@ -132,6 +133,14 @@ const UptimeDetailsPage = () => {
stats?.lastResponseTime ? `${stats?.lastResponseTime} ms` : "N/A"
}
/>
<StatBox
title="Certificate Expiry"
subtitle={
stats?.certificateExpiry
? new Date(stats.certificateExpiry).toLocaleString()
: "N/A"
}
/>
</Stack>
<HeaderRange
loading={isValidating || upIsValidating || downIsValidating}
+1
View File
@@ -14,6 +14,7 @@ export interface IMonitorStats {
currentStreak: number;
currentStreakStatus: MonitorStatus;
currentStreakStartedAt: number;
certificateExpiry?: Date | null;
createdAt: Date;
updatedAt: Date;
}