docs: update heartbeat monitors description for clarity

refactor: remove unused RandomString import from monitorSheet component

chore: clean up commented-out code in FetchData function
This commit is contained in:
Raj Nandan Sharma
2025-03-01 21:55:37 +05:30
parent 615dba42b8
commit d6a87ac81a
3 changed files with 1 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
---
title: Heartbeat Monitors | Kener
description: Monitor a heartbeat
description: Heartbeat monitors allow you to monitor systems using a "push" based approach
---
# Heartbeat Monitors

View File

@@ -15,7 +15,6 @@
ValidateIpAddress,
ValidateCronExpression,
IsValidHost,
RandomString,
IsValidNameServer
} from "$lib/clientTools.js";

View File

@@ -83,13 +83,11 @@ const FetchData = async function (site, monitor, localTz, selectedLang, lang) {
//get offset from utc in minutes
const nowUTC = GetMinuteStartNowTimestampUTC();
const midnightUTC = GetDayStartTimestampUTC(nowUTC);
// const now = 1740833640 + 60;
const midnightTz = BeginningOfDay({ timeZone: localTz });
const midnight90DaysAgoTz = midnightTz - 90 * 24 * 60 * 60;
const NO_DATA = "No Data";
let offsetInMinutes = parseInt((GetDayStartTimestampUTC(nowUTC) - midnightTz) / 60);
const maxDateTodayTimestampTz = BeginningOfMinute({ timeZone: localTz });
// const maxDateTodayTimestamp = 1740833760;
const _90Day = {};
let latestTimestamp = 0;