MCPcopy Create free account

hub / github.com/VrianCao/Uptimer / functions

Functions1,365 in github.com/VrianCao/Uptimer

↓ 5 callersFunctionformatMonitorDisplayName
(monitor: Pick<AdminMonitor, 'id' | 'name'>)
apps/web/src/pages/AdminDashboard.tsx:216
↓ 5 callersFunctionformatTimestamp
(tsSec: number)
apps/worker/src/snapshots/public-homepage.ts:316
↓ 5 callersFunctiongit
(args, options = {})
apps/worker/scripts/bench-scheduler.mjs:47
↓ 5 callersFunctionhasValidAdminTokenRequest
(input: { env: Pick<Env, 'ADMIN_TOKEN'>; req: { header(name: string): string | undefined }; })
apps/worker/src/middleware/auth.ts:12
↓ 5 callersFunctionisInt
(value: unknown)
apps/worker/src/schemas/public-status-stored.ts:22
↓ 5 callersFunctionisPositiveInt
(value: unknown)
apps/worker/src/schemas/public-homepage-stored.ts:41
↓ 5 callersFunctionmakeContext
(options: { adminRateLimitMax?: string; adminRateLimitWindowSec?: string; cfConnectingIp?: string; xFo
apps/worker/test/middleware-rate-limit.test.ts:12
↓ 5 callersFunctionmonitorRowToApi
( row: typeof monitors.$inferSelect, state?: typeof monitorState.$inferSelect | null, )
apps/worker/src/routes/admin.ts:259
↓ 5 callersFunctionnormalizeApiPathname
(pathname)
apps/web/public/_worker.js:16
↓ 5 callersFunctionnormalizeInternalTruthy
(value: string | null | undefined)
apps/worker/src/internal/homepage-refresh-core.ts:44
↓ 5 callersFunctionparseMonitorRuntimeUpdates
(value: unknown)
apps/worker/src/public/monitor-runtime.ts:218
↓ 5 callersFunctionparsePublicMonitorFragmentKey
(fragmentKey: string)
apps/worker/src/snapshots/public-monitor-fragments.ts:58
↓ 5 callersFunctionparseSettingsPatch
(rawBody: unknown)
apps/worker/src/settings.ts:94
↓ 5 callersFunctionreadBoundedPositiveIntegerEnv
( env: Env, key: string, fallback: number, min: number, max: number, )
apps/worker/src/scheduler/scheduled.ts:231
↓ 5 callersFunctionreadHomepageGuardCacheState
( db: D1Database, now: number, trace?: Trace, )
apps/worker/src/public/homepage-guard-state.ts:249
↓ 5 callersFunctionreadHomepageHistoryPreviews
( db: D1Database, now: number, trace?: Trace, )
apps/worker/src/public/homepage.ts:1464
↓ 5 callersFunctionreadPublicMonitorRuntimeTotalsSnapshot
( db: D1Database, now: number, maxAgeSeconds = MONITOR_RUNTIME_MAX_AGE_SECONDS, )
apps/worker/src/public/monitor-runtime.ts:1067
↓ 5 callersFunctionreadVisibleActiveIncidentSummary
( db: D1Database, includeHiddenMonitors: boolean, )
apps/worker/src/public/data.ts:1247
↓ 5 callersFunctionreleaseLease
( db: D1Database, name: string, expiresAt: number, )
apps/worker/src/scheduler/lock.ts:20
↓ 5 callersFunctionrequestPublicUiViaWorker
( path: string, handlers: FakeD1QueryHandler[], opts: { authorization?: string } = {}, )
apps/worker/test/public-ui-routes.test.ts:45
↓ 5 callersFunctionsanitizeHtmlResponseHeaders
(headers)
apps/web/public/_worker.js:559
↓ 5 callersFunctionsetCachedPublic
(key: string, value: unknown)
apps/web/src/api/client.ts:111
↓ 5 callersFunctionstartRenewableLease
(opts: { db: D1Database; name: string; leaseSeconds: number; initialExpiresAt: number; renewInterval
apps/worker/src/scheduler/lease-guard.ts:10
↓ 5 callersFunctiontoHeartbeatStatusCode
(status: string | null | undefined)
apps/worker/src/public/homepage.ts:337
↓ 5 callersFunctiontoMaintenancePreview
(row: MaintenanceWindowRow, monitorIds: number[])
apps/worker/src/public/homepage.ts:377
↓ 5 callersFunctiontoPublicMonitorFragmentKey
(monitorId: number)
apps/worker/src/snapshots/public-monitor-fragments.ts:53
↓ 5 callersFunctiontoRuntimeStatusCode
(value: string | null | undefined)
apps/worker/src/public/monitor-runtime.ts:561
↓ 5 callersMethodtoServerTiming
(prefix?: string)
apps/worker/src/observability/trace.ts:136
↓ 5 callersFunctiontoUiGroupLabel
(groupLabel: string)
apps/web/src/pages/AdminDashboard.tsx:907
↓ 5 callersFunctionwriteCachedRuntimeTotalsSnapshot
( db: D1Database, generatedAt: number, updatedAt: number, rawBodyJson: string, snapshot: PublicMonit
apps/worker/src/public/monitor-runtime.ts:691
↓ 4 callersFunctionaddUnknown
(from: number, to: number)
apps/worker/src/routes/public.ts:254
↓ 4 callersFunctionaddUnknown
(from: number, to: number)
apps/worker/src/analytics/uptime.ts:116
↓ 4 callersFunctionappendAuthorizationVary
(res: Response)
apps/worker/src/fetch-handler.ts:176
↓ 4 callersFunctionappendAuthorizationVary
(res: Response)
apps/worker/src/routes/public-hot.ts:50
↓ 4 callersFunctionapplyMonitorRuntimeUpdates
( snapshot: PublicMonitorRuntimeSnapshot, now: number, updates: MonitorRuntimeUpdate[], )
apps/worker/src/public/monitor-runtime.ts:1291
↓ 4 callersFunctionapplyPrivateNoStore
(res: Response)
apps/worker/src/routes/public-hot.ts:40
↓ 4 callersFunctionbuildHotPublicCacheKey
( req: Request, origin: string | null, variant: 'fresh' | 'stale' = 'fresh', )
apps/worker/src/fetch-handler.ts:274
↓ 4 callersFunctionbuildSanitizedHtmlResponse
(response)
apps/web/public/_worker.js:566
↓ 4 callersFunctionbumpHomepageGuardVersions
( db: D1Database, keys: readonly HomepageGuardComponentKey[], now = Math.floor(Date.now() / 1000), )
apps/worker/src/public/homepage-guard-state.ts:362
↓ 4 callersFunctionbumpHomepageMaintenanceGuardVersion
(db: D1Database, now?: number)
apps/worker/src/public/homepage-guard-state.ts:385
↓ 4 callersFunctionclaimNotificationDelivery
( db: D1Database, eventKey: string, channelId: number, createdAt: number, )
apps/worker/src/notify/dedupe.ts:7
↓ 4 callersFunctioncomputeHomepageAge
(now, generatedAt)
apps/web/public/_worker.js:583
↓ 4 callersFunctioncomputePartialUptimeTotals
( db: D1Database, monitorId: number, intervalSec: number, createdAt: number, lastCheckedAt: number |
apps/worker/src/routes/public.ts:1594
↓ 4 callersFunctioncomputePatchedHomepageSegmentTotals
(opts: { status: HomepageMonitorStatus; isStale: boolean; lastCheckedAt: number | null; intervalSec: n
apps/worker/src/public/homepage.ts:1604
↓ 4 callersFunctioncomputeTodayPartialUptimeBatch
( db: D1Database, monitors: Array<{ id: number; interval_sec: number; created_at: number;
apps/worker/src/public/data.ts:509
↓ 4 callersFunctioncreateAdminApp
()
apps/worker/test/admin-monitor-response-assertions.test.ts:70
↓ 4 callersFunctioncreateEnv
(monitorsById: Map<number, StoredMonitorRow>)
apps/worker/test/admin-monitor-response-assertions.test.ts:78
↓ 4 callersFunctioncreateSocket
(opened: Promise<unknown>)
apps/worker/test/monitor-tcp.test.ts:10
↓ 4 callersFunctionencodeMonitorRuntimeUpdatesCompact
( updates: readonly MonitorRuntimeUpdate[], )
apps/worker/src/public/monitor-runtime.ts:235
↓ 4 callersFunctionescapeHtml
(value)
apps/web/public/_worker.js:535
↓ 4 callersFunctionfetchIndexHtml
(env, url)
apps/web/public/_worker.js:793
↓ 4 callersFunctionformatMonitorDisplayNameById
( monitorId: number, monitorNameById: Map<number, string>, )
apps/web/src/pages/AdminDashboard.tsx:220
↓ 4 callersFunctionformatMs
(value)
tools/trace-homepage.mjs:87
↓ 4 callersFunctionformatPct
(v: number)
apps/web/src/utils/uptime.ts:117
↓ 4 callersFunctionformatTime
( tsSec: number, opts: { timeZone?: TimeZone; hour12?: boolean; locale?: Locale } = {}, )
apps/web/src/utils/datetime.ts:52
↓ 4 callersFunctionhasReusableRuntimeCreatedAt
( entry: PublicMonitorRuntimeEntry | undefined, )
apps/worker/src/public/homepage.ts:586
↓ 4 callersFunctionhasText
(value: unknown)
apps/worker/src/schemas/notification-channels.ts:47
↓ 4 callersFunctionincidentUpdateRowToApi
(row: IncidentUpdateRow)
apps/worker/src/routes/admin.ts:1191
↓ 4 callersFunctionisInt
(value: unknown)
apps/worker/src/schemas/public-homepage-stored.ts:37
↓ 4 callersFunctionisNullableNonNegativeInt
(value: unknown)
apps/worker/src/schemas/public-status-stored.ts:34
↓ 4 callersFunctionisRecord
(value: unknown)
apps/worker/src/public/monitor-runtime.ts:263
↓ 4 callersFunctionisRecord
(value: unknown)
apps/worker/src/snapshots/public-homepage-read.ts:138
↓ 4 callersFunctionisRecord
(value: unknown)
apps/worker/src/snapshots/public-homepage.ts:94
↓ 4 callersFunctionisSameMinute
(a: number, b: number)
apps/worker/src/snapshots/public-homepage.ts:792
↓ 4 callersFunctionjsonError
(status: number, code: string, message: string)
apps/worker/src/fetch-handler.ts:136
↓ 4 callersFunctionjsonError
( c: Context, status: ContentfulStatusCode, code: string, message: string, )
apps/worker/src/middleware/errors.ts:22
↓ 4 callersFunctionlistIncidentMonitorIdsByIncidentId
( db: D1Database, incidentIds: number[], )
apps/worker/src/routes/admin.ts:1246
↓ 4 callersFunctionlistPendingMonitorRowsByIds
( db: D1Database, ids: readonly number[], checkedAt: number, )
apps/worker/src/scheduler/scheduled.ts:1145
↓ 4 callersFunctionlistSnapshotCandidatesFromRefreshRows
( rows: readonly Pick<SnapshotRefreshRow, 'key' | 'generated_at' | 'updated_at'>[], )
apps/worker/src/snapshots/public-homepage-read.ts:616
↓ 4 callersFunctionlistVisibleMaintenanceWindows
( db: D1Database, now: number, includeHiddenMonitors: boolean, )
apps/worker/src/public/data.ts:1309
↓ 4 callersFunctionmakeContext
(options: { token: string | undefined; authorization: string | undefined; })
apps/worker/test/middleware-auth.test.ts:6
↓ 4 callersFunctionmakeFloodContext
(ip: string)
apps/worker/test/middleware-rate-limit.test.ts:125
↓ 4 callersFunctionnormalizeAssertionModeForStorage
( value: string | null | undefined, mode: HttpResponseMatchMode | null | undefined, )
apps/worker/src/routes/admin.ts:112
↓ 4 callersFunctionnormalizeHeaderName
(name)
apps/web/public/_worker.js:194
↓ 4 callersFunctionnormalizeHomepageArtifactBodyJson
(bodyJson: string, expectedGeneratedAt?: number)
apps/worker/src/snapshots/public-homepage-read.ts:257
↓ 4 callersFunctionnormalizeIdList
(ids: number[])
apps/worker/src/routes/admin.ts:1101
↓ 4 callersFunctionnormalizeLocaleSetting
(value: unknown)
apps/web/src/app/I18nContext.tsx:42
↓ 4 callersFunctionnormalizeVersion
(raw: number | null | undefined)
apps/worker/src/public/homepage-guard-state.ts:210
↓ 4 callersFunctionnotificationDb
(onFinalize: (args: unknown[]) => void)
apps/worker/test/notify-telegram.test.ts:9
↓ 4 callersFunctionpad2
(n: number)
apps/web/src/components/MaintenanceWindowForm.tsx:11
↓ 4 callersFunctionparseIntSetting
( raw: string | undefined, opts: { min: number; max: number }, )
apps/worker/src/settings.ts:64
↓ 4 callersFunctionparseJsonText
(text: string)
apps/worker/src/snapshots/public-homepage-read.ts:142
↓ 4 callersFunctionparseMonitorRuntimeUpdate
(value: unknown)
apps/worker/src/public/monitor-runtime.ts:153
↓ 4 callersFunctionparseMonitorRuntimeUpdateStatus
( value: unknown, )
apps/worker/src/public/monitor-runtime.ts:139
↓ 4 callersFunctionparseStoredHomepageRenderArtifactSnapshot
(value: unknown)
apps/worker/src/snapshots/public-homepage-read.ts:188
↓ 4 callersFunctionpercentile
(sorted, p)
tools/trace-homepage.mjs:81
↓ 4 callersFunctionreadCachedStatusSnapshot
( db: D1Database, generatedAt: number, updatedAt: number, )
apps/worker/src/snapshots/public-status-read.ts:93
↓ 4 callersFunctionreadErrorResponse
(response: Response)
apps/worker/test/middleware-errors.test.ts:17
↓ 4 callersFunctionreadHomepageSnapshot
( db: D1Database, now: number, )
apps/worker/src/snapshots/public-homepage.ts:812
↓ 4 callersFunctionreadHomepageSnapshotArtifactJson
( db: D1Database, now: number, )
apps/worker/src/snapshots/public-homepage.ts:905
↓ 4 callersFunctionreadHomepageSnapshotGeneratedAt
( db: D1Database, )
apps/worker/src/snapshots/public-homepage.ts:959
↓ 4 callersFunctionreadHomepageSnapshotJson
( db: D1Database, now: number, )
apps/worker/src/snapshots/public-homepage.ts:833
↓ 4 callersFunctionreadRefreshSnapshotRowByKey
( db: D1Database, key: SnapshotKey, )
apps/worker/src/snapshots/public-homepage-read.ts:594
↓ 4 callersFunctionreadStaleHomepageSnapshotArtifactJson
( db: D1Database, now: number, )
apps/worker/src/snapshots/public-homepage.ts:943
↓ 4 callersFunctionreadStoredMonitorRuntimeTotalsSnapshotFromFullSnapshot
( db: D1Database, )
apps/worker/src/public/monitor-runtime.ts:971
↓ 4 callersFunctionreadValidatedSnapshotCandidate
(opts: { db: D1Database; candidate: SnapshotCandidate; readRowByKey: (key: SnapshotKey) => Promise<Snaps
apps/worker/src/snapshots/public-homepage-read.ts:686
↓ 4 callersFunctionrebuildPublicMonitorRuntimeSnapshot
( db: D1Database, now: number, )
apps/worker/src/public/monitor-runtime-bootstrap.ts:35
↓ 4 callersFunctionrefreshPublicMonitorFragmentsFromPayloads
(opts: { db: D1Database; now: number; homepagePayload?: PublicHomepageResponse | null; statusPayload?:
apps/worker/src/internal/monitor-fragments-refresh-core.ts:36
↓ 4 callersFunctionrefreshPublicMonitorRuntimeSnapshot
(opts: { db: D1Database; now: number; updates: MonitorRuntimeUpdate[]; rebuild: () => Promise<PublicMo
apps/worker/src/public/monitor-runtime.ts:1464
↓ 4 callersFunctionrenderJsonTemplate
( value: unknown, vars: Record<string, unknown>, opts: { maxDepth?: number } = {}, )
apps/worker/src/notify/template.ts:103
← previousnext →201–300 of 1,365, ranked by callers