Skip to main content

Function: removeMonitorFromSite()

removeMonitorFromSite(site: Site, monitorId: string): Site

Defined in: src/stores/sites/utils/monitorOperations.ts:407

Removes a monitor from a site

Parametersโ€‹

siteโ€‹

Site

The site to remove the monitor from

monitorIdโ€‹

string

The ID of the monitor to remove

Returnsโ€‹

Site

Updated site without the specified monitor

Exampleโ€‹

const updatedSite = removeMonitorFromSite(site, "monitor-123");