Variable: migrationRegistry
constmigrationRegistry:MigrationRegistry
Defined in: electron/services/monitoring/MigrationSystem.ts:764
Singleton registry for monitor type migrations.
Remarks
Global MigrationRegistry instance used to register and retrieve migration rules for all monitor types throughout the application. Thread-safe for read operations but registration should occur during application initialization to avoid race conditions.
Example
// Register a migration rule
migrationRegistry.registerMigration("http", {
fromVersion: "1.0.0",
toVersion: "1.1.0",
description: "Add timeout field",
isBreaking: false,
transform: async (data) => ({ ...data, timeout: 30000 }),
});
// Check migration feasibility
const canMigrate = migrationRegistry.canMigrate("http", "1.0.0", "1.1.0");