Function: validateMonitorExists()
validateMonitorExists(
site:Site|undefined,monitorId:string):void
Defined in: src/stores/sites/utils/monitorOperations.ts:1067
Validates that a monitor exists in a site
Parametersโ
siteโ
The site to check for the monitor.
Site | undefined
monitorIdโ
string
The ID of the monitor to validate.
Returnsโ
void
Exampleโ
validateMonitorExists(site, "monitor-123");
Throwsโ
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error if site is not found or monitor does not exist.