Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
fix: periodicity other (#1319)
Maximilian Kaske0ade17c20f7c
diff --git a/apps/dashboard/src/app/(dashboard)/onboarding/client.tsx b/apps/dashboard/src/app/(dashboard)/onboarding/client.tsxindex 25b7f1857..ae2f02c4c 100644--- a/apps/dashboard/src/app/(dashboard)/onboarding/client.tsx+++ b/apps/dashboard/src/app/(dashboard)/onboarding/client.tsx@@ -92,7 +92,7 @@ export function Client() {trpc.workspace.get.queryOptions(),);const createMonitorMutation = useMutation(- trpc.monitor.create.mutationOptions({+ trpc.monitor.new.mutationOptions({onSuccess: () => {setSearchParams({ step: "2" });refetch();@@ -149,15 +149,11 @@ export function Client() {await createMonitorMutation.mutateAsync({url: values.url,name: new URL(values.url).hostname,- // FIXME: undefined values should be allowed+ method: "GET",headers: [],- assertions: undefined,+ assertions: [],jobType: "http",- // FIXME: check which regions are available on free plan- regions: ["ams", "iad", "syd"],active: true,- public: false,- workspaceId: workspace?.id,});}}/>diff --git a/packages/api/src/router/monitor.ts b/packages/api/src/router/monitor.tsindex 339332f73..520f50652 100644--- a/packages/api/src/router/monitor.ts+++ b/packages/api/src/router/monitor.ts@@ -1305,6 +1305,7 @@ export const monitorRouter = createTRPCRouter({}),new: protectedProcedure+ .meta({ track: Events.CreateMonitor, trackProps: ["url", "jobType"] }).input(z.object({name: z.string(),@@ -1399,7 +1400,7 @@ export const monitorRouter = createTRPCRouter({body: input.body,active: input.active,workspaceId: ctx.workspace.id,- periodicity: "30m",+ periodicity: ctx.workspace.plan === "free" ? "30m" : "1m",regions: regions.join(","),assertions: serialize(assertions),updatedAt: new Date(),