MCPcopy Create free account

hub / github.com/VrianCao/Uptimer / functions

Functions1,365 in github.com/VrianCao/Uptimer

↓ 9 callersFunctionwritePublicMonitorRuntimeSnapshot
( db: D1Database, snapshot: PublicMonitorRuntimeSnapshot, now: number, )
apps/worker/src/public/monitor-runtime.ts:1091
↓ 8 callersFunctionapplyTrace
(res: Response, trace: Trace | null, prefix: string)
apps/worker/src/fetch-handler.ts:405
↓ 8 callersFunctionbuildHomepageMonitorFragmentWrites
( payload: PublicHomepageResponse, updatedAt: number, monitorIds?: Iterable<number>, )
apps/worker/src/snapshots/public-monitor-fragments.ts:115
↓ 8 callersFunctionbuildStatusMonitorFragmentWrites
( payload: PublicStatusResponse, updatedAt: number, monitorIds?: Iterable<number>, )
apps/worker/src/snapshots/public-monitor-fragments.ts:89
↓ 8 callersFunctionbumpHomepageMonitorGuardVersions
(db: D1Database, now?: number)
apps/worker/src/public/homepage-guard-state.ts:377
↓ 8 callersFunctioncomputePublicHomepagePayload
( db: D1Database, now: number, opts: { trace?: Trace; baseSnapshot?: PublicHomepageResponse | nu
apps/worker/src/public/homepage.ts:2494
↓ 8 callersFunctionformatDiagnosticMs
(value: number | undefined)
apps/worker/src/index.ts:106
↓ 8 callersFunctiongetDb
(env: { DB: D1Database })
packages/db/src/client.ts:8
↓ 8 callersFunctionhasNonEmptyHeader
(request, name)
apps/web/public/_worker.js:107
↓ 8 callersFunctionhomepagePayload
()
apps/worker/test/snapshots-public-monitor-fragments.test.ts:133
↓ 8 callersFunctionincidentRowToApi
( row: IncidentRow, updates: IncidentUpdateRow[] = [], monitorIds: number[] = [], )
apps/worker/src/routes/admin.ts:1201
↓ 8 callersFunctionisAuthorizedStatusAdminRequest
(c: { env: Pick<Env, 'ADMIN_TOKEN'>; req: { header(name: string): string | undefined }; })
apps/worker/src/routes/public.ts:64
↓ 8 callersFunctionisStringMember
(set: ReadonlySet<string>, value: unknown)
apps/worker/src/schemas/public-homepage-stored.ts:65
↓ 8 callersFunctionisTruthyEnvFlag
(value: unknown)
apps/worker/src/internal/sharded-public-snapshot-continuation.ts:64
↓ 8 callersFunctionjsonError
(status, code, message)
apps/web/public/_worker.js:326
↓ 8 callersFunctionlogContinuationDiagnostics
( env: Env, result: ShardedPublicSnapshotContinuationResult, )
apps/worker/src/internal/sharded-public-snapshot-continuation.ts:130
↓ 8 callersFunctionmergeIntervals
(intervals: Interval[])
apps/worker/src/analytics/uptime.ts:26
↓ 8 callersFunctionmonitorGroupLabel
(monitor: Pick<AdminMonitor, 'group_name'>)
apps/web/src/pages/AdminDashboard.tsx:193
↓ 8 callersFunctionreadHomepageSnapshotJsonAnyAge
( db: D1Database, now: number, maxStaleSeconds = MAX_STALE_SECONDS, )
apps/worker/src/snapshots/public-homepage-read.ts:1317
↓ 8 callersFunctionreadSnapshotValueFromRows
(opts: { rows: ReadonlyArray<{ generated_at: number; updated_at?: number | null; body_json: string }>; now
apps/worker/src/snapshots/public-homepage.ts:756
↓ 8 callersFunctiontoInteger
(value: unknown)
apps/worker/src/scheduler/scheduled.ts:652
↓ 8 callersFunctiontoMonitorRuntimeEntryMap
( snapshot: PublicMonitorRuntimeSnapshot, )
apps/worker/src/public/monitor-runtime.ts:1167
↓ 8 callersFunctionwithVisibilityAwareCaching
(res: Response, includeHiddenMonitors: boolean)
apps/worker/src/routes/public-ui.ts:58
↓ 7 callersMethodaddSpan
(name: string, durMs: number)
apps/worker/src/observability/trace.ts:104
↓ 7 callersFunctionappendMapValue
(map: Map<K, V[]>, key: K, value: V)
apps/worker/src/public/data.ts:141
↓ 7 callersFunctionbuildHomepageEnvelopeFragmentWrite
( payload: PublicHomepageResponse, updatedAt: number, )
apps/worker/src/snapshots/public-monitor-fragments.ts:192
↓ 7 callersFunctioncreateContext
()
apps/worker/test/middleware-errors.test.ts:6
↓ 7 callersFunctiondispatchWebhookToChannels
(args: { db: D1Database; env: Record<string, unknown>; channels: WebhookChannel[]; eventType: string;
apps/worker/src/notify/webhook.ts:514
↓ 7 callersFunctionfetchSelfWithTimeout
( env: Env, request: Request, timeoutMs: number, label: string, signal?: AbortSignal, )
apps/worker/src/scheduler/scheduled.ts:249
↓ 7 callersFunctionfromRuntimeStatusCode
( value: MonitorRuntimeStatusCode, )
apps/worker/src/public/monitor-runtime.ts:577
↓ 7 callersFunctionhasValidInternalAuth
(request: Request, env: Env)
apps/worker/src/index.ts:30
↓ 7 callersFunctionhomepagePayload
()
apps/worker/test/internal-sharded-public-snapshot.test.ts:88
↓ 7 callersFunctionisFutureSnapshotCandidate
(candidate: SnapshotCandidate, now: number)
apps/worker/src/snapshots/public-homepage-read.ts:517
↓ 7 callersFunctionisInternalServiceRequest
(request: Request)
apps/worker/src/index.ts:37
↓ 7 callersFunctionisPositiveInt
(value: unknown)
apps/worker/src/schemas/public-status-stored.ts:26
↓ 7 callersFunctionisRequestBodyTooLarge
(request: Request)
apps/worker/src/index.ts:45
↓ 7 callersFunctionmaintenanceWindowStatusPageVisibilityPredicate
( includeHiddenMonitors: boolean, alias = 'maintenance_windows', )
apps/worker/src/public/visibility.ts:66
↓ 7 callersFunctionmakeContext
(options: { method: string; url: string; response: Response; authorization?: string; waitUntil?: Ret
apps/worker/test/middleware-cache-public.test.ts:26
↓ 7 callersFunctionmatchesQuery
(normalizedSql: string, matcher: QueryMatcher)
apps/worker/test/helpers/fake-d1.ts:32
↓ 7 callersFunctionmaterializeMonitorRuntimeTotals
( entry: PublicMonitorRuntimeTotalsEntry, now: number, )
apps/worker/src/public/monitor-runtime.ts:1394
↓ 7 callersFunctionoverlapSeconds
(a: Interval[], b: Interval[])
apps/worker/src/analytics/uptime.ts:59
↓ 7 callersFunctionparseDirectHomepagePayload
(value: unknown)
apps/worker/src/snapshots/public-homepage-read.ts:155
↓ 7 callersFunctionpercentileFromHistogram
(hist: LatencyHistogram, p: number)
apps/worker/src/analytics/latency.ts:65
↓ 7 callersFunctionprepareStatusSnapshotWrite
(opts: { db: D1Database; now: number; payload: PublicStatusResponse; trace?: Trace; afterHomepage?:
apps/worker/src/snapshots/public-status.ts:316
↓ 7 callersFunctionreadSettings
( db: D1Database, opts: { bypassCache?: boolean } = {}, )
apps/worker/src/settings.ts:105
↓ 7 callersFunctionreadStatusSnapshotJson
( db: D1Database, now: number, )
apps/worker/src/snapshots/public-status-read.ts:170
↓ 7 callersFunctionrunExclusivePersistedMonitorBatch
(opts: { db: D1Database; ids: readonly number[]; checkedAt: number; suppressedMonitorIds?: ReadonlySet
apps/worker/src/scheduler/scheduled.ts:1163
↓ 7 callersFunctionrunTcpCheck
(config: TcpCheckConfig)
apps/worker/src/monitor/tcp.ts:77
↓ 7 callersFunctiontakeBatchFirstRow
( result: { results?: unknown[] | undefined } | null | undefined, )
apps/worker/src/routes/public-ui.ts:392
↓ 7 callersFunctiontoInternalHomepageRefreshCoreResult
( ok: boolean, refreshed: boolean, extra: Omit<InternalHomepageRefreshCoreResult, 'ok' | 'refreshed'> =
apps/worker/src/internal/homepage-refresh-core.ts:64
↓ 7 callersFunctiontoSnapshotUpdatedAt
(row: StatusSnapshotMetadataRow)
apps/worker/src/snapshots/public-status-read.ts:87
↓ 7 callersFunctionwithTraceSync
(trace: Trace | undefined, name: string, fn: () => T)
apps/worker/src/snapshots/public-homepage.ts:82
↓ 7 callersFunctionwritePublicSnapshotFragments
( db: D1Database, fragments: PublicSnapshotFragmentWrite[], )
apps/worker/src/snapshots/public-fragments.ts:100
↓ 6 callersFunctioncreateFragmentEnv
(extraHandlers: Parameters<typeof createFakeD1Database>[0] = [])
apps/worker/test/internal-sharded-public-snapshot.test.ts:136
↓ 6 callersFunctiondispatchWebhookToChannel
(args: { db: D1Database; env: Record<string, unknown>; channel: WebhookChannel; eventType: string; e
apps/worker/src/notify/webhook.ts:444
↓ 6 callersFunctionformatClock
(ts: number, timeZone?: string, locale?: string)
apps/web/src/components/DayDowntimeModal.tsx:13
↓ 6 callersFunctionincidentImpactLabel
(impact: IncidentImpact, t: TFunction)
apps/web/src/i18n/labels.ts:14
↓ 6 callersFunctionincidentStatusPageVisibilityPredicate
( includeHiddenMonitors: boolean, alias = 'incidents', )
apps/worker/src/public/visibility.ts:54
↓ 6 callersFunctioninstallCacheMock
(store: CacheStore)
apps/worker/test/middleware-cache-public.test.ts:7
↓ 6 callersFunctionisAuthorizedStatusAdminRequest
(c: { env: Pick<Env, 'ADMIN_TOKEN'>; req: { header(name: string): string | undefined }; })
apps/worker/src/routes/public-ui.ts:34
↓ 6 callersFunctionisPositiveInteger
(value: unknown)
apps/worker/src/public/monitor-runtime.ts:131
↓ 6 callersFunctionisSameUtcDay
(a: number, b: number)
apps/worker/src/snapshots/public-homepage-read.ts:513
↓ 6 callersFunctionmatchesExpectedGeneratedAt
( snapshot: PublicHomepageResponse, expectedGeneratedAt: number | undefined, )
apps/worker/src/snapshots/public-homepage-read.ts:206
↓ 6 callersFunctionnextIp
()
apps/worker/test/middleware-rate-limit.test.ts:7
↓ 6 callersFunctionnormalizeMonitorGroupName
(groupName: string | null | undefined)
apps/worker/src/routes/admin.ts:107
↓ 6 callersFunctionparseDbJson
( schema: z.ZodType<T, z.ZodTypeDef, unknown>, value: string, opts: { field?: string } = {}, )
packages/db/src/json.ts:3
↓ 6 callersFunctionparseDbJsonNullable
( schema: z.ZodType<T, z.ZodTypeDef, unknown>, value: string | null, opts: { field?: string } = {}, )
packages/db/src/json.ts:24
↓ 6 callersFunctionpercentile
(sorted: number[], ratio: number)
apps/worker/test/homepage-snapshot.bench.ts:239
↓ 6 callersFunctionqueueHomepageRefresh
( runtimeUpdates?: MonitorRuntimeUpdate[], runtimeSnapshotBaseline?: PublicMonitorRuntimeSnapshot, )
apps/worker/src/scheduler/scheduled.ts:1801
↓ 6 callersFunctionreadStaleStatusSnapshotJson
( db: D1Database, now: number, maxStaleSeconds = MAX_STALE_SECONDS, )
apps/worker/src/snapshots/public-status-read.ts:279
↓ 6 callersFunctionreadStatusSnapshotRow
( db: D1Database, )
apps/worker/src/snapshots/public-status-read.ts:138
↓ 6 callersFunctionreadStoredHomepageSnapshotData
(value: unknown)
apps/worker/src/snapshots/public-homepage.ts:610
↓ 6 callersFunctionreadValidatedStatusSnapshotRow
( db: D1Database, row: StatusSnapshotRow, )
apps/worker/src/snapshots/public-status-read.ts:152
↓ 6 callersFunctionrequestHomepage
(handlers: FakeD1QueryHandler[])
apps/worker/test/public-homepage-routes.test.ts:36
↓ 6 callersFunctionruntimeEntryToHeartbeats
( entry: PublicMonitorRuntimeEntry, )
apps/worker/src/public/monitor-runtime.ts:1430
↓ 6 callersFunctionsnapshotHasMonitorIds
( snapshot: PublicMonitorRuntimeSnapshot, monitorIds: number[], )
apps/worker/src/public/monitor-runtime.ts:1149
↓ 6 callersFunctiontakeBatchRows
(result: { results?: unknown[] | undefined } | null | undefined)
apps/worker/src/routes/public-ui.ts:388
↓ 6 callersFunctiontimeInternalCheckBatchDiagnostic
( enabled: boolean, timings: InternalCheckBatchDiagnosticTimings, label: string, fn: () => Promise<T>,
apps/worker/src/index.ts:72
↓ 6 callersFunctiontoCsvRow
(values: Array<string | number | null>)
apps/worker/src/routes/admin-exports.ts:33
↓ 6 callersFunctiontoIncidentImpact
( value: string | null, )
apps/worker/src/public/data.ts:281
↓ 6 callersFunctiontoSnapshotUpdatedAt
(row: Pick<SnapshotRefreshRow, 'generated_at' | 'updated_at'>)
apps/worker/src/snapshots/public-homepage-read.ts:334
↓ 6 callersFunctiontryPatchPublicHomepagePayloadFromRuntimeUpdates
(opts: { baseSnapshot: PublicHomepageResponse | null; now: number; updates: MonitorRuntimeUpdate[]; })
apps/worker/src/public/homepage.ts:1954
↓ 6 callersFunctionuseApplyServerLocaleSetting
(localeSetting: LocaleSetting | null | undefined)
apps/web/src/app/useApplyServerLocaleSetting.ts:6
↓ 6 callersFunctionutcDayStart
(timestampSec: number)
apps/worker/src/public/monitor-runtime.ts:557
↓ 5 callersFunctionaddUptimeTotals
( target: { total_sec: number; downtime_sec: number; unknown_sec: number; uptime_sec: number }, source: {
apps/worker/src/routes/public-ui.ts:491
↓ 5 callersFunctionassertFragmentText
(value: string, label: string)
apps/worker/src/snapshots/public-fragments.ts:51
↓ 5 callersFunctionavg
(values: number[])
apps/worker/src/analytics/latency.ts:8
↓ 5 callersFunctionbuildHomepageCacheHit
(cached, ageSeconds)
apps/web/public/_worker.js:707
↓ 5 callersFunctionbuildInternalJsonResponse
(body: unknown, ok: boolean)
apps/worker/src/index.ts:164
↓ 5 callersFunctionbuildLatencyHistogram
(values: number[])
apps/worker/src/analytics/latency.ts:26
↓ 5 callersFunctionbuildMonitorFragmentWrite
(opts: { snapshotKey: string; fragmentKey: string; generatedAt: number; bodyJson: string; updatedAt:
apps/worker/src/snapshots/public-monitor-fragments.ts:73
↓ 5 callersFunctionbuildStatusEnvelopeFragmentWrite
( payload: PublicStatusResponse, updatedAt: number, )
apps/worker/src/snapshots/public-monitor-fragments.ts:179
↓ 5 callersFunctionbumpHomepageIncidentGuardVersion
(db: D1Database, now?: number)
apps/worker/src/public/homepage-guard-state.ts:381
↓ 5 callersFunctioncanonicalHotPublicPathname
(pathname: string)
apps/worker/src/fetch-handler.ts:230
↓ 5 callersFunctioncomputeHomepageMonitorPresentation
( row: Pick<HomepageMonitorRow, 'id' | 'interval_sec' | 'last_checked_at' | 'state_status'>, now: number,
apps/worker/src/public/homepage.ts:457
↓ 5 callersFunctioncomputeOverallStatus
(summary: PublicHomepageResponse['summary'])
apps/worker/src/public/homepage.ts:444
↓ 5 callersFunctioncreateEmptyMonitorBatchExecutionResult
()
apps/worker/src/scheduler/scheduled.ts:677
↓ 5 callersFunctioncreateExecutionContext
()
apps/worker/test/index-scheduled.test.ts:22
↓ 5 callersFunctioncurrentNow
()
apps/worker/src/scheduler/scheduled.ts:1796
↓ 5 callersFunctiondidApplyStatusSnapshotWrite
( result: Awaited<ReturnType<D1PreparedStatement['run']>> | undefined, )
apps/worker/src/snapshots/public-status.ts:234
← previousnext →101–200 of 1,365, ranked by callers