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.
2.6 kB ยท 84 lines
TypeScript
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485const today = new Date();const lastHour = new Date(new Date().setHours(new Date().getHours() - 1));const yesterday = new Date(new Date().setDate(new Date().getDate() - 1));
console.log({ today, lastHour, yesterday });
export const statusReports = [ { id: 1, name: "Downtime API due to hosting provider with 400 errors", startedAt: yesterday, updatedAt: today, status: "operational", updates: [ { id: 2, status: "operational" as const, message: "Everything is under control, we continue to monitor the situation.", date: today, updatedAt: today, monitors: [1], }, { id: 1, status: "investigating" as const, message: "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.", date: lastHour, updatedAt: lastHour, monitors: [1], }, ], affected: ["OpenStatus API"], }, { id: 3, name: "Downtime API due to hosting provider with 400 errors", startedAt: new Date("2025-08-05 12:10:00"), updatedAt: new Date("2025-08-05 12:30:00"), status: "operational", updates: [ { id: 4, status: "operational" as const, message: "Everything is under control, we continue to monitor the situation.", date: new Date("2025-08-06 03:30:00"), updatedAt: new Date("2025-08-06 03:30:00"), monitors: [1], }, { id: 3, status: "monitoring" as const, message: "We are continuing to monitor the situation to ensure that the issue is resolved.", date: new Date("2025-08-05 16:00:00"), updatedAt: new Date("2025-08-05 16:00:00"), monitors: [1], }, { id: 2, status: "identified" as const, message: "We have identified the root cause of the issue. It is due to a configuration error on our part.", date: new Date("2025-08-05 14:00:00"), updatedAt: new Date("2025-08-05 14:00:00"), monitors: [1], }, { id: 1, status: "investigating" as const, message: "Our hosting provider is having an increase of 400 errors. We are working on a solution to reduce the risk.", date: new Date("2025-08-05 12:00:00"), updatedAt: new Date("2025-08-05 12:00:00"), monitors: [1], }, ], affected: ["OpenStatus API"], },];
export type StatusReport = (typeof statusReports)[number];