Skip to main content

Function: addHistoryEntry()

addHistoryEntry(db: Database, monitorId: string, entry: StatusHistory, details?: string): void

Defined in: electron/services/database/utils/maintenance/historyManipulation.ts:70

Internal

Add a new history entry for a monitor.

Parameters

db

Database

Database connection instance

monitorId

string

Unique identifier of the monitor

entry

StatusHistory

StatusHistory object containing check results

details?

string

Optional additional details about the check

Returns

void

Remarks

Designed to be called from repository methods that manage transaction context and error handling.

Throws

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error When database insertion fails