Function: validateMonitorExists()
validateMonitorExists(
site
:undefined
|Site
,monitorId
:string
):void
Defined in: src/stores/sites/utils/monitorOperations.ts:485
Validates that a monitor exists in a site
Parametersโ
siteโ
The site to check for the monitor
undefined
| Site
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