Skip to main content

Function: addHistoryEntry()

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

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

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​

Error when database insertion fails