Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
1.5 kB ยท 60 lines
TypeScript
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061export const responseLogs = [ { id: 1, url: "https://api.openstatus.dev", method: "GET", status: 200 as const, latency: 150, timing: { dns: 10, connect: 20, tls: 30, ttfb: 40, transfer: 50, }, assertions: [], region: "ams" as const, error: false, timestamp: new Date().getTime(), headers: { "Cache-Control": "private, no-cache, no-store, max-age=0, must-revalidate", "Content-Type": "text/html; charset=utf-8", Date: "Sun, 28 Jan 2024 08:50:13 GMT", Server: "Vercel", }, type: "scheduled" as const satisfies "scheduled" | "on-demand", }, { id: 2, url: "https://api.openstatus.dev", method: "GET", status: 500 as const, latency: 150, timing: { dns: 4, connect: 120, tls: 12, ttfb: 20, transfer: 40, }, assertions: [], region: "ams" as const, error: true, timestamp: new Date().getTime(), headers: { "Cache-Control": "private, no-cache, no-store, max-age=0, must-revalidate", "Content-Type": "text/html; charset=utf-8", Date: "Sun, 28 Jan 2024 08:50:13 GMT", Server: "Vercel", }, type: "scheduled" as const satisfies "scheduled" | "on-demand", // error message message: "Environment variable 'NEXT_PUBLIC_TEST_KEY' is missing. Please add and redeploy your project.", },];
export type ResponseLog = (typeof responseLogs)[number];export type Timing = ResponseLog["timing"];