Openstatus
www.openstatus.dev
1export const responseLogs = [
2 {
3 id: 1,
4 url: "https://api.openstatus.dev",
5 method: "GET",
6 status: 200 as const,
7 latency: 150,
8 timing: {
9 dns: 10,
10 connect: 20,
11 tls: 30,
12 ttfb: 40,
13 transfer: 50,
14 },
15 assertions: [],
16 region: "ams" as const,
17 error: false,
18 timestamp: new Date().getTime(),
19 headers: {
20 "Cache-Control":
21 "private, no-cache, no-store, max-age=0, must-revalidate",
22 "Content-Type": "text/html; charset=utf-8",
23 Date: "Sun, 28 Jan 2024 08:50:13 GMT",
24 Server: "Vercel",
25 },
26 type: "scheduled" as const satisfies "scheduled" | "on-demand",
27 },
28 {
29 id: 2,
30 url: "https://api.openstatus.dev",
31 method: "GET",
32 status: 500 as const,
33 latency: 150,
34 timing: {
35 dns: 4,
36 connect: 120,
37 tls: 12,
38 ttfb: 20,
39 transfer: 40,
40 },
41 assertions: [],
42 region: "ams" as const,
43 error: true,
44 timestamp: new Date().getTime(),
45 headers: {
46 "Cache-Control":
47 "private, no-cache, no-store, max-age=0, must-revalidate",
48 "Content-Type": "text/html; charset=utf-8",
49 Date: "Sun, 28 Jan 2024 08:50:13 GMT",
50 Server: "Vercel",
51 },
52 type: "scheduled" as const satisfies "scheduled" | "on-demand",
53 // error message
54 message:
55 "Environment variable 'NEXT_PUBLIC_TEST_KEY' is missing. Please add and redeploy your project.",
56 },
57];
58
59export type ResponseLog = (typeof responseLogs)[number];
60export type Timing = ResponseLog["timing"];