Destroy the monitor and release all resources. After calling destroy(), the monitor cannot be reused.
Safe to call multiple times (idempotent).
Check if the monitor has been destroyed.
Check if monitoring is currently paused.
Pause monitoring without stopping it. The heartbeat loop keeps running but events are not emitted while paused. When resumed, the next poll is treated as a fresh start (no spurious events).
Optionalevent: keyof IMonitorEventsResume monitoring after a pause.
previousState is cleared so the next poll behaves like the first loop
(no VARIABLE_CHANGED / status events are emitted for stale data).
Allow to monitor events on the UPS
Example