MCPcopy Create free account

hub / github.com/VrianCao/Uptimer / functions

Functions1,365 in github.com/VrianCao/Uptimer

↓ 237 callersMethodsetLabel
(key: string, value: string | number | boolean | null | undefined)
apps/worker/src/observability/trace.ts:95
↓ 205 callersMethodbind
(...args: unknown[])
apps/worker/test/helpers/fake-d1.ts:54
↓ 175 callersFunctioncreateFakeD1Database
(handlers: FakeD1QueryHandler[])
apps/worker/test/helpers/fake-d1.ts:180
↓ 91 callersMethodall
()
apps/worker/test/helpers/fake-d1.ts:60
↓ 79 callersMethodtimeAsync
(name: string, fn: () => Promise<T>)
apps/worker/src/observability/trace.ts:119
↓ 57 callersFunctionsamplePayload
(now = 1_728_000_000)
apps/worker/test/snapshots-public-homepage.test.ts:38
↓ 50 callersFunctionfetch
(request, env, ctx)
apps/web/public/_worker.js:972
↓ 45 callersFunctioncreateEnv
(options: CreateEnvOptions = {})
apps/worker/test/scheduled.test.ts:74
↓ 41 callersFunctionrunScheduledTick
(env: Env, ctx: ExecutionContext)
apps/worker/src/scheduler/scheduled.ts:1791
↓ 40 callersFunctioninstallDefaultCacheMock
( match: CacheMatcher, opts: { putImpl?: (request: Request, response: Response) => Promise<void> | void }
apps/worker/test/pages-homepage-worker.test.ts:7
↓ 40 callersFunctionmakeEnv
(indexHtml = '<!doctype html><html><head></head><body><div id="root"></div></body></html>')
apps/worker/test/pages-homepage-worker.test.ts:30
↓ 37 callersMethodfinish
(totalName = 'total')
apps/worker/src/observability/trace.ts:130
↓ 34 callersFunctionhandleResponse
(res: Response)
apps/web/src/api/client.ts:216
↓ 31 callersFunctioncn
(...parts: Array<string | false | null | undefined>)
apps/web/src/components/ui.tsx:6
↓ 31 callersMethodrun
()
apps/worker/test/helpers/fake-d1.ts:129
↓ 30 callersFunctiongetAuthHeaders
()
apps/web/src/api/client.ts:182
↓ 29 callersFunctionbuildHomepageRenderArtifact
( snapshot: PublicHomepageResponse, )
apps/worker/src/snapshots/public-homepage.ts:564
↓ 29 callersFunctionrequestStatusViaWorker
(opts: { handlers: FakeD1QueryHandler[]; origin?: string; method?: string; path?: string; authorizat
apps/worker/test/public-hot-routes.test.ts:48
↓ 29 callersFunctionuseI18n
()
apps/web/src/app/I18nContext.tsx:152
↓ 26 callersFunctionapplyTraceToResponse
(opts: { res: Response; trace: Trace; prefix?: string; info?: string; serverTiming?: string; })
apps/worker/src/observability/trace.ts:170
↓ 26 callersFunctionformatDateTime
(tsSec: number, timeZone?: TimeZone, locale?: Locale)
apps/web/src/utils/datetime.ts:27
↓ 26 callersFunctionisNonNegativeInt
(value: unknown)
apps/worker/src/schemas/public-status-stored.ts:30
↓ 24 callersFunctionwithTraceAsync
( trace: Trace | undefined, name: string, fn: () => Promise<T>, )
apps/worker/src/public/homepage.ts:176
↓ 21 callersFunctionrunHttpCheck
(config: HttpCheckConfig)
apps/worker/src/monitor/http.ts:215
↓ 20 callersFunctioncomputePublicStatusPayload
( db: D1Database, now: number, opts: { includeHiddenMonitors?: boolean } = {}, )
apps/worker/src/public/status.ts:14
↓ 20 callersFunctioncreateBaseSnapshot
(now: number)
apps/worker/test/internal-homepage-refresh.test.ts:46
↓ 20 callersFunctionvalidateHttpTarget
(target: string)
apps/worker/src/monitor/targets.ts:130
↓ 19 callersFunctionmonitorVisibilityPredicate
(includeHiddenMonitors: boolean, alias?: string)
apps/worker/src/public/visibility.ts:23
↓ 19 callersFunctionsamplePayload
(now = 1_728_000_000)
apps/worker/test/public-homepage-routes.test.ts:97
↓ 19 callersMethodtime
(name: string, fn: () => T)
apps/worker/src/observability/trace.ts:110
↓ 18 callersFunctionrequestHomepageViaApp
( path: | '/api/v1/public/homepage' | '/api/v1/public/homepage/' | '/api/v1/public/homepage-arti
apps/worker/test/public-homepage-routes.test.ts:72
↓ 17 callersFunctionapplyHomepageCacheHeaders
(res: Response, ageSeconds: number)
apps/worker/src/snapshots/public-homepage.ts:1196
↓ 17 callersFunctionescapeHtml
(value: unknown)
apps/worker/src/snapshots/public-homepage.ts:104
↓ 17 callersFunctionfinalizeTraceResponse
(res, trace)
apps/web/public/_worker.js:512
↓ 17 callersFunctionsamplePayload
(now = 1_728_000_000)
apps/worker/test/snapshots-public-status.test.ts:23
↓ 15 callersFunctionapplyPrivateNoStore
(res: Response, req?: Request)
apps/worker/src/fetch-handler.ts:181
↓ 15 callersFunctionbuildNumberedPlaceholders
(count: number, startIndex = 1)
apps/worker/src/public/visibility.ts:7
↓ 15 callersFunctioncomputeNextState
( prev: MonitorStateSnapshot | null, outcome: CheckOutcome, checkedAt: number, config?: Partial<StateM
apps/worker/src/monitor/state-machine.ts:57
↓ 15 callersFunctioncreateEnv
(now: number, statusSnapshot: ReturnType<typeof createStatusSnapshot> | null = null)
apps/worker/test/internal-homepage-refresh.test.ts:133
↓ 15 callersFunctionqueuePublicHomepageSnapshotRefresh
(c: { env: Env; executionCtx: ExecutionContext })
apps/worker/src/routes/admin.ts:92
↓ 15 callersFunctionrenderStringTemplate
(template: string, vars: Record<string, unknown>)
apps/worker/src/notify/template.ts:90
↓ 15 callersFunctionvalidateTcpTarget
(target: string)
apps/worker/src/monitor/targets.ts:179
↓ 14 callersFunctionacquireLease
( db: D1Database, name: string, now: number, leaseSeconds: number, )
apps/worker/src/scheduler/lock.ts:1
↓ 14 callersFunctionipv4InCidr
(ip: number, base: string, maskBits: number)
apps/worker/src/monitor/targets.ts:44
↓ 14 callersFunctionisNonNegativeInt
(value: unknown)
apps/worker/src/schemas/public-homepage-stored.ts:45
↓ 13 callersFunctionasString
(vars: Record<string, unknown>, path: string)
apps/worker/src/notify/template.ts:133
↓ 13 callersFunctiondefaultMessageForEvent
( eventType: NotificationEventType | string, vars: Record<string, unknown>, )
apps/worker/src/notify/template.ts:145
↓ 13 callersFunctionfilterStatusPageScopedMonitorIds
( monitorIds: number[], visibleMonitorIds: Set<number>, includeHiddenMonitors: boolean, )
apps/worker/src/public/visibility.ts:106
↓ 13 callersFunctionisRecord
(value: unknown)
apps/worker/src/schemas/public-homepage-stored.ts:33
↓ 13 callersFunctionisRecord
(value: unknown)
apps/worker/src/schemas/public-status-stored.ts:18
↓ 13 callersFunctionshouldIncludeStatusPageScopedItem
( originalMonitorIds: number[], visibleMonitorIds: number[], )
apps/worker/src/public/visibility.ts:114
↓ 13 callersFunctionsnapshot
(partial: Partial<MonitorStateSnapshot>)
apps/worker/test/monitor-state-machine.test.ts:8
↓ 13 callersFunctionutcDayStart
(timestampSec: number)
apps/worker/src/analytics/uptime.ts:5
↓ 13 callersFunctionwithTraceAsync
( trace: Trace | undefined, name: string, fn: () => Promise<T>, )
apps/worker/src/snapshots/public-homepage.ts:86
↓ 12 callersFunctionbuildUnknownIntervals
( rangeStart: number, rangeEnd: number, intervalSec: number, checks: Array<{ checked_at: number; statu
apps/worker/src/analytics/uptime.ts:100
↓ 12 callersFunctionchunkPositiveIntegerIds
(ids: number[], chunkSize = D1_ID_CHUNK_SIZE)
apps/worker/src/public/visibility.ts:11
↓ 12 callersFunctionclampNonNegativeInteger
(value: number)
apps/worker/src/public/monitor-runtime.ts:552
↓ 12 callersFunctionisNonNegativeInteger
(value: unknown)
apps/worker/src/public/monitor-runtime.ts:135
↓ 12 callersFunctionnormalizeTruthyHeader
(value: string | null)
apps/worker/src/index.ts:20
↓ 12 callersFunctionparseTcpTarget
(target: string)
apps/worker/src/monitor/targets.ts:154
↓ 12 callersFunctionpercentileFromValues
(values: number[], p: number)
apps/worker/src/analytics/latency.ts:14
↓ 12 callersFunctionpreparePublicUiStatement
(db: D1Database, sql: string)
apps/worker/src/routes/public-ui.ts:76
↓ 12 callersFunctionreadPublicMonitorRuntimeSnapshot
( db: D1Database, now: number, maxAgeSeconds = MONITOR_RUNTIME_MAX_AGE_SECONDS, )
apps/worker/src/public/monitor-runtime.ts:1043
↓ 12 callersFunctionrequestPublic
( path: string, handlers: FakeD1QueryHandler[], opts: { adminToken?: string; authorization?: string } =
apps/worker/test/public-uptime-routes.test.ts:28
↓ 12 callersFunctionsumIntervals
(intervals: Interval[])
apps/worker/src/analytics/uptime.ts:55
↓ 12 callersFunctionwithTraceSync
(trace: Trace | undefined, name: string, fn: () => T)
apps/worker/src/public/homepage.ts:172
↓ 12 callersFunctionwithVisibilityAwareCaching
(res: Response, includeHiddenMonitors: boolean)
apps/worker/src/routes/public.ts:88
↓ 11 callersFunctionapplyApiCorsHeaders
(res, request, canonicalPathname)
apps/web/public/_worker.js:336
↓ 11 callersFunctionapplyStatusCacheHeaders
(res: Response, ageSeconds: number)
apps/worker/src/snapshots/public-status.ts:365
↓ 11 callersFunctionbuildNotFoundJsonResponse
(origin: string | null)
apps/worker/src/index.ts:174
↓ 11 callersFunctionisTruthyEnvFlag
(value: unknown)
apps/worker/src/scheduler/scheduled.ts:136
↓ 11 callersFunctionlistStatusPageVisibleMonitorIds
( db: D1Database, monitorIds: number[], )
apps/worker/src/public/visibility.ts:78
↓ 11 callersFunctionreadHomepageRefreshBaseSnapshot
( db: D1Database, now: number, )
apps/worker/src/snapshots/public-homepage-read.ts:1068
↓ 11 callersFunctionwriteStatusSnapshot
( db: D1Database, now: number, payload: PublicStatusResponse, trace?: Trace, )
apps/worker/src/snapshots/public-status.ts:217
↓ 10 callersFunctionapplyCorsHeaders
( res: Response, origin: string | null, allowedMethods = CORS_ALLOW_METHODS, )
apps/worker/src/fetch-handler.ts:100
↓ 10 callersFunctionapplySensitiveProxyResponsePolicy
(res, request)
apps/web/public/_worker.js:311
↓ 10 callersFunctiongetCachedPublic
(key: string)
apps/web/src/api/client.ts:104
↓ 10 callersFunctionisNonNegativeInteger
(value: unknown)
apps/worker/src/public/analytics-overview.ts:102
↓ 10 callersFunctionisStringMember
(set: ReadonlySet<string>, value: unknown)
apps/worker/src/schemas/public-status-stored.ts:46
↓ 10 callersFunctionnormalizeRuntimeUpdateLatencyMs
(value: unknown)
apps/worker/src/public/monitor-runtime.ts:124
↓ 10 callersFunctionrangeToSeconds
(range: UptimeRange)
apps/worker/src/analytics/uptime.ts:9
↓ 10 callersFunctionreadStatusSnapshot
( db: D1Database, now: number, )
apps/worker/src/snapshots/public-status.ts:144
↓ 10 callersFunctionrefreshPublicHomepageSnapshotIfNeeded
(opts: { db: D1Database; now: number; compute: () => Promise<unknown>; trace?: Trace; force?: boolea
apps/worker/src/snapshots/public-homepage.ts:1277
↓ 10 callersFunctionsafeJsonParse
(text: string)
apps/worker/src/snapshots/public-homepage.ts:658
↓ 10 callersFunctionstatusPayload
()
apps/worker/test/snapshots-public-monitor-fragments.test.ts:75
↓ 10 callersFunctionupsertHeadTag
(html, pattern, tag)
apps/web/public/_worker.js:716
↓ 10 callersFunctionutcDayStart
(timestampSec: number)
apps/worker/src/public/data.ts:491
↓ 9 callersFunctionbuildPublicStatusBanner
(opts: { counts: PublicStatusResponse['summary']; monitorCount: number; activeIncidents: FilteredInciden
apps/worker/src/public/data.ts:1458
↓ 9 callersFunctioncachePublic
(opts: { cacheName: string; maxAgeSeconds: number; skipPathnames?: readonly string[]; normalizeCacheKe
apps/worker/src/middleware/cache-public.ts:72
↓ 9 callersFunctioncloseModal
()
apps/web/src/pages/AdminDashboard.tsx:467
↓ 9 callersFunctionformatError
(err: unknown)
apps/web/src/pages/AdminDashboard.tsx:163
↓ 9 callersFunctiongetOptionalPublicAuth
()
apps/web/src/api/client.ts:188
↓ 9 callersFunctionincidentStatusLabel
(status: IncidentStatus, t: TFunction)
apps/web/src/i18n/labels.ts:10
↓ 9 callersFunctionreadPublicSnapshotFragments
( db: D1Database, snapshotKey: string, )
apps/worker/src/snapshots/public-fragments.ts:112
↓ 9 callersFunctionreadSnapshotRowsByPriority
( db: D1Database, )
apps/worker/src/snapshots/public-homepage.ts:696
↓ 9 callersFunctionrequestAdmin
( app: ReturnType<typeof createAdminApp>, env: Env, path: string, init: { method?: string; bod
apps/worker/test/admin-monitor-response-assertions.test.ts:142
↓ 9 callersFunctionresolveTraceOptions
(opts: { header: (name: string) => string | undefined; env?: Record<string, unknown>; })
apps/worker/src/observability/trace.ts:36
↓ 9 callersFunctionsampleStatusPayload
(now = 1_728_000_000)
apps/worker/test/public-hot-routes.test.ts:17
↓ 9 callersFunctiontryComputePublicHomepagePayloadFromScheduledRuntimeUpdates
(opts: { db: D1Database; now: number; baseSnapshot?: PublicHomepageResponse | null; baseSnapshotBodyJs
apps/worker/src/public/homepage.ts:2297
↓ 9 callersFunctionwriteHomepageSnapshot
( db: D1Database, now: number, payload: PublicHomepageResponse, trace?: Trace, seedDataSnapshot = fa
apps/worker/src/snapshots/public-homepage.ts:1134
next →1–100 of 1,365, ranked by callers