Class: DumpWatcher
Defined in: watchers/dump.watcher.ts:26
DumpWatcher tracks database dumps, exports, imports, and migrations. Monitors data transfer operations, capturing operation type, format, record counts, file sizes, compression, and encryption status.
Implements
OnModuleInitOnModuleDestroy
Constructors
Constructor
new DumpWatcher(
collector,nestlensConfig,dumpService?):DumpWatcher
Defined in: watchers/dump.watcher.ts:31
Parameters
collector
nestlensConfig
dumpService?
unknown
Returns
DumpWatcher
Methods
onModuleDestroy()
onModuleDestroy():
void
Defined in: watchers/dump.watcher.ts:74
Returns
void
Implementation of
OnModuleDestroy.onModuleDestroy
onModuleInit()
onModuleInit():
void
Defined in: watchers/dump.watcher.ts:43
Returns
void
Implementation of
OnModuleInit.onModuleInit
trackDump()
trackDump(
operation,format,duration,status,options?):void
Defined in: watchers/dump.watcher.ts:131
Manual tracking method for dump operations. Call this method to track dump/export/import operations that aren't automatically intercepted.
Parameters
operation
Type of operation ('export', 'import', 'backup', 'restore', 'migrate')
"export" | "import" | "backup" | "restore" | "migrate"
format
Data format ('sql', 'json', 'csv', 'binary')
"json" | "sql" | "csv" | "binary"
duration
number
status
"completed" | "failed"
options?
Operation options (source, destination, recordCount, fileSize, etc.)
compressed?
boolean
destination?
string
encrypted?
boolean
error?
string
fileSize?
number
recordCount?
number
source?
string
Returns
void