Skip to main content

Interface: HistoryRepositoryTransactionAdapter

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

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:97

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:103

Delete all history records.

Returns

void


deleteByMonitorId()

deleteByMonitorId: (monitorId: string) => void

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

Delete history entries for a single monitor.

Parameters

monitorId

string

Returns

void


getHistoryCount()

getHistoryCount: (monitorId: string) => number

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

Get the history count for a monitor.

Parameters

monitorId

string

Returns

number


pruneAllHistory()

pruneAllHistory: (limit: number) => void

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

Prune history globally across all monitors.

Parameters

limit

number

Returns

void