mirror of
https://github.com/rajnandan1/kener.git
synced 2026-03-05 16:10:28 -06:00
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:
@@ -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
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
ValidateIpAddress,
|
||||
ValidateCronExpression,
|
||||
IsValidHost,
|
||||
RandomString,
|
||||
IsValidNameServer
|
||||
} from "$lib/clientTools.js";
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user