fix(api): сохранять каталог пинг-проб атомарно
This commit is contained in:
1 parent
9c22fa8a68
commit
53c1bfbd3b
15 files changed
+243
-122
No files matched your search
@@ -21,3 +21,5 @@ export function parseDashboardProbes(raw:unknown):{probes:DashboardProbe[];sampl
|
||||
const active=probes.filter(p=>p.enabled),times=active.map(p=>p.sampledAt).filter((v):v is string=>!!v)
|
||||
return {probes,sampledAt:active.length&×.length===active.length?new Date(times.reduce((oldest,v)=>Math.min(oldest,Date.parse(v)),Infinity)).toISOString():null}
|
||||
}
|
||||
|
||||
export { overview as dashboardProbeOverviewSchema }
|
||||
Reference in new issue
Block a user