Openstatus
www.openstatus.dev
1import {
2 ALL_REGIONS,
3 AVAILABLE_REGIONS,
4 FLY_REGIONS,
5 FREE_FLY_REGIONS,
6} from "@openstatus/regions";
7import { z } from "zod";
8
9export const monitorPeriodicity = [
10 "30s",
11 "1m",
12 "5m",
13 "10m",
14 "30m",
15 "1h",
16 "other",
17] as const;
18
19export const availableRegions = AVAILABLE_REGIONS;
20export const monitorRegions = ALL_REGIONS;
21export const freeFlyRegions = FREE_FLY_REGIONS;
22export const flyRegions = FLY_REGIONS;
23export const monitorPeriodicitySchema = z.enum(monitorPeriodicity);
24export const monitorRegionSchema = z.enum(ALL_REGIONS);
25export const monitorFlyRegionSchema = z.enum(FLY_REGIONS);
26
27export type MonitorFlyRegion = z.infer<typeof monitorFlyRegionSchema>;
28export type Region = z.infer<typeof monitorRegionSchema>;