Skip to content

Open-source status page, incident response and uptime monitoring

537 B
Raw Blame
import { z } from "@hono/zod-openapi";

import { ParamsSchema } from "../schema";

export { ParamsSchema };

export const SummarySchema = z.object({
  ok: z.int().openapi({
    description:
      "The number of ok responses (defined by the assertions - or by default status code 200)",
  }),
  count: z.int().openapi({ description: "The total number of request" }),
  day: z.coerce
    .date()
    .openapi({ description: "The date of the daily stat in ISO8601 format" }),
});

export type SummarySchema = z.infer<typeof SummarySchema>;