()
| 52 | } |
| 53 | |
| 54 | periodicHealthCheck() { |
| 55 | if (this._healthCheckTimer) { |
| 56 | clearInterval(this._healthCheckTimer); |
| 57 | } |
| 58 | this._healthCheck(); |
| 59 | this._healthCheckTimer = setInterval(async () => { |
| 60 | this._healthCheck(); |
| 61 | }, Number(process.env.SCUBA_HEALTHCHECK_FREQUENCY) |
| 62 | || externalBackendHealthCheckInterval); |
| 63 | } |
| 64 | |
| 65 | getUtilizationMetrics(metricsClass, resourceName, options, body, callback) { |
| 66 | const requestStartTime = process.hrtime.bigint(); |
no test coverage detected