Files
MikrotikManager/backend/src/services/manual-data-collection.ts
T

16 lines
870 B
TypeScript

import { scheduleAlertEngineAfterDataCollectors } from "./alert-collector-hooks.js"
import { collectServersRestPingOnce, getServersApiPingSettings } from "./servers-rest-ping-collector.js"
import { collectPingForProbeIds, collectUptimeOnce, readUptimeSettings } from "./uptime-collector.js"
import { createManualDataCollection } from "./manual-data-collection-execution.js"
/** Shared full manual operations. These retain global alert/outbox effects;
* callers must not advertise them as scoped, read-only diagnostics. */
export const manualDataCollection = createManualDataCollection({
collectServersRestPing: collectServersRestPingOnce,
collectUptime: collectUptimeOnce,
collectPingGroup: collectPingForProbeIds,
readServersRestPingSettings: getServersApiPingSettings,
readUptimeSettings,
scheduleGlobalAlerts: scheduleAlertEngineAfterDataCollectors,
})