MCPcopy
hub / github.com/browserless/browserless / getMachineStatsSource

Method getMachineStatsSource

src/config.ts:415–423  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

413 return this.maxMemory;
414 }
415 public getMachineStatsSource(): 'auto' | 'host' | 'cgroup' {
416 const value = this.machineStatsSource;
417 if (value !== 'auto' && value !== 'host' && value !== 'cgroup') {
418 throw new Error(
419 `Invalid MACHINE_STATS_SOURCE value "${value}". Expected "auto", "host", or "cgroup".`,
420 );
421 }
422 return value;
423 }
424 public getCpuSampleIntervalMs(): number {
425 return this.cpuSampleIntervalMs;
426 }

Callers 1

constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected