Skip to main content

Interface: HistoryRepositoryTransactionAdapter

Defined in: electron/services/database/HistoryRepository.ts:83

Operations exposed for history manipulations within a transaction scope.

Properties​

addEntry​

addEntry: (monitorId: string, entry: StatusHistory, details?: string) => void;

Defined in: electron/services/database/HistoryRepository.ts:85

Add a history entry for the specified monitor.

Parameters​

monitorId​

string

entry​

StatusHistory

details?​

string

Returns​

void


deleteAll​

deleteAll: () => void;

Defined in: electron/services/database/HistoryRepository.ts:91

Delete all history records.

Returns​

void


deleteByMonitorId​

deleteByMonitorId: (monitorId: string) => void;

Defined in: electron/services/database/HistoryRepository.ts:93

Delete history entries for a single monitor.

Parameters​

monitorId​

string

Returns​

void


getHistoryCount​

getHistoryCount: (monitorId: string) => number;

Defined in: electron/services/database/HistoryRepository.ts:95

Get the history count for a monitor.

Parameters​

monitorId​

string

Returns​

number


pruneAllHistory​

pruneAllHistory: (limit: number) => void;

Defined in: electron/services/database/HistoryRepository.ts:97

Prune history globally across all monitors.

Parameters​

limit​

number

Returns​

void