fix(uptime): отличать ошибки опроса от измеренных потерь Ping

This commit is contained in:
Denozordec committed 2026-10-12 17:55:16 +07:00
1 parent ca23284486
commit 8fb46b1552
35 files changed
+1582 -78

No files matched your search

+2
View File
@@ -365,6 +365,8 @@ export const uptimeProbeSamples = pgTable("uptime_probe_samples", {
rttMs: integer("rtt_ms"),
lossPct: integer("loss_pct").notNull().default(0),
status: text("status", { enum: ["up", "warn", "down"] }).notNull().default("down"),
measurementKnown: boolean("measurement_known").notNull().default(true),
observationError: text("observation_error"),
}, (t) => [
primaryKey({ columns: [t.probeId, t.sampledAt] }),
])