Skip to main content

Function: buildMonitoringLockKey()

function buildMonitoringLockKey(
siteIdentifier: string,
monitorId: string
): OptimisticLockKey;

Defined in: src/stores/sites/utils/optimisticMonitoringLock.ts:62

Builds a deterministic key for a monitor lock entry.

Parametersโ€‹

siteIdentifierโ€‹

string

Site identifier that owns the monitor.

monitorIdโ€‹

string

Unique monitor identifier within the site.

Returnsโ€‹

OptimisticLockKey

Stable string key for lock lookups.