MCPcopy
hub / github.com/msgbyte/tianji / stopMonitor

Method stopMonitor

src/server/model/monitor/runner.ts:227–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

225 }
226
227 stopMonitor() {
228 const monitor = this.monitor;
229
230 this.isStopped = true;
231 if (this.timer) {
232 clearTimeout(this.timer);
233 this.timer = null;
234 }
235
236 logger.info(`Stop monitor ${monitor.name}(${monitor.id})`);
237 }
238
239 async restartMonitor() {
240 this.stopMonitor();

Callers 6

restartMonitorMethod · 0.95
upsertMethod · 0.80
deleteMethod · 0.80
createRunnerMethod · 0.80
monitor.tsFile · 0.80

Calls 1

infoMethod · 0.65

Tested by

no test coverage detected