fix: allow null status_code in ingest schema; check HTTP status in post_result
This commit is contained in:
@@ -97,8 +97,8 @@ export const ingest = new Elysia()
|
||||
monitor_id: t.String(),
|
||||
scheduled_at: t.Optional(t.Nullable(t.String())),
|
||||
jitter_ms: t.Optional(t.Nullable(t.Number())),
|
||||
status_code: t.Optional(t.Number()),
|
||||
latency_ms: t.Optional(t.Number()),
|
||||
status_code: t.Optional(t.Nullable(t.Number())),
|
||||
latency_ms: t.Optional(t.Nullable(t.Number())),
|
||||
up: t.Boolean(),
|
||||
error: t.Optional(t.Nullable(t.String())),
|
||||
cert_expiry_days: t.Optional(t.Nullable(t.Number())),
|
||||
|
||||
Reference in New Issue
Block a user