Openstatus
www.openstatus.dev
1const today = new Date();
2const lastHour = new Date(new Date().setHours(new Date().getHours() - 1));
3const yesterday = new Date(new Date().setDate(new Date().getDate() - 1));
4
5console.log({ today, lastHour, yesterday });
6
7export const statusReports = [
8 {
9 id: 1,
10 name: "Downtime API due to hosting provider with 400 errors",
11 startedAt: yesterday,
12 updatedAt: today,
13 status: "operational",
14 updates: [
15 {
16 id: 2,
17 status: "operational" as const,
18 message:
19 "Everything is under control, we continue to monitor the situation.",
20 date: today,
21 updatedAt: today,
22 monitors: [1],
23 },
24 {
25 id: 1,
26 status: "investigating" as const,
27 message:
28 "Our hosting provider is having an increase of 400 errors. We are aware of the dependency and will be working on a solution to reduce the risk.",
29 date: lastHour,
30 updatedAt: lastHour,
31 monitors: [1],
32 },
33 ],
34 affected: ["OpenStatus API"],
35 },
36 {
37 id: 3,
38 name: "Downtime API due to hosting provider with 400 errors",
39 startedAt: new Date("2025-08-05 12:10:00"),
40 updatedAt: new Date("2025-08-05 12:30:00"),
41 status: "operational",
42 updates: [
43 {
44 id: 4,
45 status: "operational" as const,
46 message:
47 "Everything is under control, we continue to monitor the situation.",
48 date: new Date("2025-08-06 03:30:00"),
49 updatedAt: new Date("2025-08-06 03:30:00"),
50 monitors: [1],
51 },
52 {
53 id: 3,
54 status: "monitoring" as const,
55 message:
56 "We are continuing to monitor the situation to ensure that the issue is resolved.",
57 date: new Date("2025-08-05 16:00:00"),
58 updatedAt: new Date("2025-08-05 16:00:00"),
59 monitors: [1],
60 },
61 {
62 id: 2,
63 status: "identified" as const,
64 message:
65 "We have identified the root cause of the issue. It is due to a configuration error on our part.",
66 date: new Date("2025-08-05 14:00:00"),
67 updatedAt: new Date("2025-08-05 14:00:00"),
68 monitors: [1],
69 },
70 {
71 id: 1,
72 status: "investigating" as const,
73 message:
74 "Our hosting provider is having an increase of 400 errors. We are working on a solution to reduce the risk.",
75 date: new Date("2025-08-05 12:00:00"),
76 updatedAt: new Date("2025-08-05 12:00:00"),
77 monitors: [1],
78 },
79 ],
80 affected: ["OpenStatus API"],
81 },
82];
83
84export type StatusReport = (typeof statusReports)[number];