Openstatus www.openstatus.dev

๐Ÿ› Bug chart missing koyeb (#1420)

* ๐Ÿš‘

* ๐Ÿš‘

authored by

Thibault Le Ouay and committed by
GitHub
0cc30b63 968d2131

+7 -7
+2 -2
apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/client.tsx
··· 26 26 import { mapRegionMetrics } from "@/data/metrics.client"; 27 27 import type { RegionMetric } from "@/data/region-metrics"; 28 28 import { useTRPC } from "@/lib/trpc/client"; 29 - import { flyRegions } from "@openstatus/db/src/schema/constants"; 29 + import { monitorRegions } from "@openstatus/db/src/schema/constants"; 30 30 import { useQuery } from "@tanstack/react-query"; 31 31 import { useParams } from "next/navigation"; 32 32 import { useQueryStates } from "nuqs"; ··· 65 65 // once the data is loaded, we show all the regions that we get from TB 66 66 isLoading 67 67 ? monitor?.regions ?? [] 68 - : (flyRegions as unknown as (typeof flyRegions)[number][]), 68 + : (monitorRegions as unknown as (typeof monitorRegions)[number][]), 69 69 percentile, 70 70 ); 71 71 }, [regionTimeline, monitor, percentile, isLoading]);
+2 -2
apps/workflows/src/checker/index.ts
··· 8 8 selectMonitorSchema, 9 9 } from "@openstatus/db/src/schema/monitors/validation"; 10 10 11 - import { flyRegions } from "@openstatus/db/src/schema/constants"; 11 + import { monitorRegions } from "@openstatus/db/src/schema/constants"; 12 12 import { Tinybird } from "@openstatus/tinybird"; 13 13 import { env } from "../env"; 14 14 import { checkerAudit } from "../utils/audit-log"; ··· 22 22 monitorId: z.string(), 23 23 message: z.string().optional(), 24 24 statusCode: z.number().optional(), 25 - region: z.enum(flyRegions), 25 + region: z.enum(monitorRegions), 26 26 cronTimestamp: z.number(), 27 27 status: monitorStatusSchema, 28 28 latency: z.number().optional(),
+2 -2
packages/api/src/router/monitor.ts
··· 37 37 38 38 import { Events } from "@openstatus/analytics"; 39 39 import { 40 - flyRegions, 41 40 freeFlyRegions, 42 41 monitorPeriodicity, 42 + monitorRegions, 43 43 } from "@openstatus/db/src/schema/constants"; 44 44 import { createTRPCRouter, protectedProcedure, publicProcedure } from "../trpc"; 45 45 import { testHttp, testTcp } from "./checker"; ··· 1412 1412 } 1413 1413 1414 1414 const selectableRegions = 1415 - ctx.workspace.plan === "free" ? freeFlyRegions : flyRegions; 1415 + ctx.workspace.plan === "free" ? freeFlyRegions : monitorRegions; 1416 1416 const randomRegions = ctx.workspace.plan === "free" ? 4 : 6; 1417 1417 1418 1418 const regions = [...selectableRegions]
+1 -1
packages/db/src/schema/plan/config.ts
··· 107 107 "synthetic-checks": 300, 108 108 periodicity: ["30s", "1m", "5m", "10m", "30m", "1h"], 109 109 "multi-region": true, 110 - "max-regions": 35, 110 + "max-regions": 41, 111 111 "data-retention": "12 months", 112 112 "status-pages": 5, 113 113 maintenance: true,