Function: validateMonitorExists()
function validateMonitorExists(site: Site | undefined, monitorId: string): void;
Defined in: src/stores/sites/utils/monitorOperations.ts:219
Validates that a monitor exists in a site.
Parametersโ
siteโ
Site | undefined
The site to check for the monitor.
monitorIdโ
string
The ID of the monitor to validate.
Returnsโ
void
Exampleโ
validateMonitorExists(site, "monitor-123");
Throwsโ
Error if site is not found or monitor does not exist.