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.
564 B ยท 22 lines
TypeScript
at incident-api
1234567891011121314151617181920212223import { opsgenieDataSchema } from "@openstatus/db/src/schema";import { z } from "zod";
export const OpsGenieSchema = opsgenieDataSchema;
export const OpsGeniePayloadAlert = z.object({ message: z.string(), alias: z.string(), description: z.string(), source: z.string().prefault("OpenStatus"), details: z .object({ message: z.string(), status: z.number().optional(), severity: z.enum(["degraded", "down"]), }) .optional(),});
export const OpsGenieCloseAlert = z.object({ source: z.string().prefault("OpenStatus"),});