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.
853 B ยท 40 lines
TypeScript
1234567891011121314151617181920212223242526272829303132333435363738394041import type { Incident, StatusReport } from "@openstatus/db/src/schema";
// DO NOT CHANGE!export enum Status { Operational = "operational", DegradedPerformance = "degraded_performance", PartialOutage = "partial_outage", MajorOutage = "major_outage", UnderMaintenance = "under_maintenance", Unknown = "unknown", Incident = "incident",}
// TODO: duplicate to `Status` enum aboveexport type StatusVariant = | "up" | "degraded" | "down" | "empty" | "incident" | "maintenance";
export type StatusDetails = { long: string; short: string; variant: StatusVariant;};
/** * Data used for the `Bar` component within the `Tracker` component. */export type TrackerData = { ok: number; count: number; date: Date; incidents: Incident[]; statusReports: StatusReport[]; status: Status; variant: StatusVariant;};