update include timings
This commit is contained in:
@@ -132,7 +132,7 @@ export const ingest = new Elysia()
|
||||
`;
|
||||
|
||||
const [ping] = await sql`
|
||||
INSERT INTO pings (monitor_id, checked_at, scheduled_at, jitter_ms, status_code, latency_ms, up, important, error, meta, region, run_id, cert_expiry_days, cert_issuer, response_size)
|
||||
INSERT INTO pings (monitor_id, checked_at, scheduled_at, jitter_ms, status_code, latency_ms, up, important, error, meta, region, run_id, cert_expiry_days, cert_issuer, response_size, dns_ms, tcp_ms, tls_ms)
|
||||
VALUES (
|
||||
${body.monitor_id},
|
||||
${checkedAt ?? sql`now()`},
|
||||
@@ -148,7 +148,10 @@ export const ingest = new Elysia()
|
||||
${body.run_id ?? null},
|
||||
${body.cert_expiry_days ?? null},
|
||||
${body.cert_issuer ?? null},
|
||||
${body.response_size ?? null}
|
||||
${body.response_size ?? null},
|
||||
${body.dns_ms ?? null},
|
||||
${body.tcp_ms ?? null},
|
||||
${body.tls_ms ?? null}
|
||||
)
|
||||
RETURNING *
|
||||
`;
|
||||
@@ -200,6 +203,9 @@ export const ingest = new Elysia()
|
||||
cert_expiry_days: t.Optional(t.Nullable(t.Number())),
|
||||
cert_issuer: t.Optional(t.Nullable(t.String())),
|
||||
response_size: t.Optional(t.Nullable(t.Number())),
|
||||
dns_ms: t.Optional(t.Nullable(t.Number())),
|
||||
tcp_ms: t.Optional(t.Nullable(t.Number())),
|
||||
tls_ms: t.Optional(t.Nullable(t.Number())),
|
||||
meta: t.Optional(t.Any()),
|
||||
region: t.Optional(t.Nullable(t.String())),
|
||||
run_id: t.Optional(t.Nullable(t.String())),
|
||||
|
||||
Reference in New Issue
Block a user